1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

[llvm-exegesis] Fix warning in r22752: Initialize IsSnippetSetupComplete.

llvm-svn: 335467
This commit is contained in:
Clement Courbet 2018-06-25 13:39:50 +00:00
parent 3af012a962
commit 4267839df1

View File

@ -158,7 +158,7 @@ void assembleToStream(const ExegesisTarget *ET,
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);