From 4267839df14a643b19c08a659385e91dcc97414e Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Mon, 25 Jun 2018 13:39:50 +0000 Subject: [PATCH] [llvm-exegesis] Fix warning in r22752: Initialize IsSnippetSetupComplete. llvm-svn: 335467 --- tools/llvm-exegesis/lib/Assembler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-exegesis/lib/Assembler.cpp b/tools/llvm-exegesis/lib/Assembler.cpp index f5be120f281..9410c70c582 100644 --- a/tools/llvm-exegesis/lib/Assembler.cpp +++ b/tools/llvm-exegesis/lib/Assembler.cpp @@ -158,7 +158,7 @@ void assembleToStream(const ExegesisTarget *ET, Properties.set(llvm::MachineFunctionProperties::Property::NoVRegs); Properties.reset(llvm::MachineFunctionProperties::Property::IsSSA); std::vector SnippetWithSetup; - bool IsSnippetSetupComplete; + bool IsSnippetSetupComplete = RegsToDef.empty(); if (ET) { SnippetWithSetup = generateSnippetSetupCode(RegsToDef, *ET, IsSnippetSetupComplete);