[llvm] r335467 - [llvm-exegesis] Fix warning in r22752: Initialize IsSnippetSetupComplete.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 25 06:39:50 PDT 2018
Author: courbet
Date: Mon Jun 25 06:39:50 2018
New Revision: 335467
URL: http://llvm.org/viewvc/llvm-project?rev=335467&view=rev
Log:
[llvm-exegesis] Fix warning in r22752: Initialize IsSnippetSetupComplete.
Modified:
llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp?rev=335467&r1=335466&r2=335467&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp Mon Jun 25 06:39:50 2018
@@ -158,7 +158,7 @@ void assembleToStream(const ExegesisTarg
Properties.set(llvm::MachineFunctionProperties::Property::NoVRegs);
Properties.reset(llvm::MachineFunctionProperties::Property::IsSSA);
std::vector<llvm::MCInst> SnippetWithSetup;
- bool IsSnippetSetupComplete;
+ bool IsSnippetSetupComplete = RegsToDef.empty();
if (ET) {
SnippetWithSetup =
generateSnippetSetupCode(RegsToDef, *ET, IsSnippetSetupComplete);
More information about the llvm-commits
mailing list