From 952b121a9cd30a8499773928f6f1ee46d16d994e Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Wed, 17 Oct 2018 12:09:21 +0000 Subject: [PATCH] BuildBot fix, compiler complains about array decay to pointer llvm-svn: 344690 --- llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp b/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp index df9d18b..614d474 100644 --- a/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp +++ b/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp @@ -92,18 +92,17 @@ llvm::StringRef getName(ExecutionMode Bit) { llvm_unreachable("Missing enum case"); } -static const ExecutionMode kAllExecutionModeBits[] = { - ExecutionMode::ALWAYS_SERIAL_IMPLICIT_REGS_ALIAS, - ExecutionMode::ALWAYS_SERIAL_TIED_REGS_ALIAS, - ExecutionMode::SERIAL_VIA_MEMORY_INSTR, - ExecutionMode::SERIAL_VIA_EXPLICIT_REGS, - ExecutionMode::SERIAL_VIA_NON_MEMORY_INSTR, - ExecutionMode::ALWAYS_PARALLEL_MISSING_USE_OR_DEF, - ExecutionMode::PARALLEL_VIA_EXPLICIT_REGS, -}; - llvm::ArrayRef getAllExecutionBits() { - return kAllExecutionModeBits; + static const ExecutionMode kAllExecutionModeBits[] = { + ExecutionMode::ALWAYS_SERIAL_IMPLICIT_REGS_ALIAS, + ExecutionMode::ALWAYS_SERIAL_TIED_REGS_ALIAS, + ExecutionMode::SERIAL_VIA_MEMORY_INSTR, + ExecutionMode::SERIAL_VIA_EXPLICIT_REGS, + ExecutionMode::SERIAL_VIA_NON_MEMORY_INSTR, + ExecutionMode::ALWAYS_PARALLEL_MISSING_USE_OR_DEF, + ExecutionMode::PARALLEL_VIA_EXPLICIT_REGS, + }; + return llvm::makeArrayRef(kAllExecutionModeBits); } llvm::SmallVector -- 2.7.4