From d259ba70025f6c87f9e01d9adadc7da208f9bed2 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Wed, 17 Oct 2018 12:27:46 +0000 Subject: [PATCH] Fix uninitialized variable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344692 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-exegesis/lib/Latency.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-exegesis/lib/Latency.cpp b/tools/llvm-exegesis/lib/Latency.cpp index 7b991a452aa..0dd84cc0958 100644 --- a/tools/llvm-exegesis/lib/Latency.cpp +++ b/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()) -- 2.11.4.GIT