Commit afb42cb3 authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[liftoff] Fix std::array initializer list.

R=clemensh@chromium.org

Change-Id: I545b1826be1566f7ce1ed6ad920fac0746a0dca9
Reviewed-on: https://chromium-review.googlesource.com/878161Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50751}
parent 58881f11
......@@ -8,8 +8,6 @@
#include <iosfwd>
#include <memory>
// Clients of this interface shouldn't depend on lots of compiler internals.
// Do not include anything from src/compiler here!
#include "src/base/bits.h"
#include "src/frames.h"
#include "src/macro-assembler.h"
......
......@@ -8,8 +8,6 @@
#include <iosfwd>
#include <memory>
// Clients of this interface shouldn't depend on lots of compiler internals.
// Do not include anything from src/compiler here!
#include "src/base/bits.h"
#include "src/wasm/baseline/liftoff-assembler-defs.h"
#include "src/wasm/wasm-opcodes.h"
......@@ -211,7 +209,7 @@ class LiftoffRegList {
template <typename... Regs>
static LiftoffRegList ForRegs(Regs... regs) {
std::array<LiftoffRegister, sizeof...(regs)> regs_arr{
LiftoffRegister(regs)...};
{LiftoffRegister(regs)...}};
LiftoffRegList list;
for (LiftoffRegister reg : regs_arr) list.set(reg);
return list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment