[llvm] r327669 - [codeview] Fix sense of the assertion about hashtable insertion
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 15 14:18:42 PDT 2018
Author: rnk
Date: Thu Mar 15 14:18:42 2018
New Revision: 327669
URL: http://llvm.org/viewvc/llvm-project?rev=327669&view=rev
Log:
[codeview] Fix sense of the assertion about hashtable insertion
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp?rev=327669&r1=327668&r2=327669&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp Thu Mar 15 14:18:42 2018
@@ -1163,7 +1163,7 @@ void CodeViewDebug::collectVariableInfo(
void CodeViewDebug::beginFunctionImpl(const MachineFunction *MF) {
const Function &GV = MF->getFunction();
auto Insertion = FnDebugInfo.insert({&GV, llvm::make_unique<FunctionInfo>()});
- assert(!Insertion.second && "emitting function twice");
+ assert(Insertion.second && "function already has info");
CurFn = Insertion.first->second.get();
CurFn->FuncId = NextFuncId++;
CurFn->Begin = Asm->getFunctionBegin();
More information about the llvm-commits
mailing list