Index: llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp =================================================================== --- llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp +++ llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp @@ -33,6 +33,7 @@ const llvm::MCSubtargetInfo *const MSI, llvm::ArrayRef RegisterInitialValues, bool &IsSnippetSetupComplete) { + IsSnippetSetupComplete = true; std::vector Result; for (const RegisterValue &RV : RegisterInitialValues) { // Load a constant in the register. @@ -170,7 +171,7 @@ for (const unsigned Reg : LiveIns) MF.getRegInfo().addLiveIn(Reg); - bool IsSnippetSetupComplete = false; + bool IsSnippetSetupComplete; std::vector Code = generateSnippetSetupCode(ET, TM->getMCSubtargetInfo(), RegisterInitialValues, IsSnippetSetupComplete);