[llvm] r344692 - Fix uninitialized variable
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 17 05:27:46 PDT 2018
Author: gchatelet
Date: Wed Oct 17 05:27:46 2018
New Revision: 344692
URL: http://llvm.org/viewvc/llvm-project?rev=344692&view=rev
Log:
Fix uninitialized variable
Modified:
llvm/trunk/tools/llvm-exegesis/lib/Latency.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/Latency.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Latency.cpp?rev=344692&r1=344691&r2=344692&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Latency.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Latency.cpp Wed Oct 17 05:27:46 2018
@@ -61,7 +61,7 @@ computeAliasingInstructions(const LLVMSt
}
static ExecutionMode getExecutionModes(const Instruction &Instr) {
- ExecutionMode EM;
+ ExecutionMode EM = ExecutionMode::UNKNOWN;
if (Instr.hasAliasingImplicitRegisters())
EM |= ExecutionMode::ALWAYS_SERIAL_IMPLICIT_REGS_ALIAS;
if (Instr.hasTiedRegisters())
More information about the llvm-commits
mailing list