From 48346fa9ed505eeb96d15420077b50f79fe63898 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 15 Mar 2018 21:18:42 +0000 Subject: [PATCH] [codeview] Fix sense of the assertion about hashtable insertion llvm-svn: 327669 --- lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 1ffc589d7f9..89a7974e473 100644 --- a/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -1163,7 +1163,7 @@ void CodeViewDebug::collectVariableInfo(const DISubprogram *SP) { void CodeViewDebug::beginFunctionImpl(const MachineFunction *MF) { const Function &GV = MF->getFunction(); auto Insertion = FnDebugInfo.insert({&GV, llvm::make_unique()}); - 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();