summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2018-10-17 12:27:46 +0000
committerGuillaume Chatelet <gchatelet@google.com>2018-10-17 12:27:46 +0000
commit6f4bc173096bcf0f96f73715e36f00ab8e756319 (patch)
tree2043fd16beb22a8748cd2ed03dc0e84afcefb383 /llvm/tools/llvm-exegesis/lib
parente9b134aa3103ad7ce6b901659f0edb4ed4225e2c (diff)
downloadbcm5719-llvm-6f4bc173096bcf0f96f73715e36f00ab8e756319.tar.gz
bcm5719-llvm-6f4bc173096bcf0f96f73715e36f00ab8e756319.zip
Fix uninitialized variable
llvm-svn: 344692
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Latency.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Latency.cpp b/llvm/tools/llvm-exegesis/lib/Latency.cpp
index 7b991a452aa..0dd84cc0958 100644
--- a/llvm/tools/llvm-exegesis/lib/Latency.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Latency.cpp
@@ -61,7 +61,7 @@ computeAliasingInstructions(const LLVMState &State, const Instruction &Instr,
}
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())
OpenPOWER on IntegriCloud