[llvm] r344690 - BuildBot fix, compiler complains about array decay to pointer
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 17 05:09:21 PDT 2018
Author: gchatelet
Date: Wed Oct 17 05:09:21 2018
New Revision: 344690
URL: http://llvm.org/viewvc/llvm-project?rev=344690&view=rev
Log:
BuildBot fix, compiler complains about array decay to pointer
Modified:
llvm/trunk/tools/llvm-exegesis/lib/CodeTemplate.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/CodeTemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/CodeTemplate.cpp?rev=344690&r1=344689&r2=344690&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/CodeTemplate.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/CodeTemplate.cpp Wed Oct 17 05:09:21 2018
@@ -92,18 +92,17 @@ llvm::StringRef getName(ExecutionMode Bi
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<ExecutionMode> 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<ExecutionMode, 4>
More information about the llvm-commits
mailing list