summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-03-15 21:18:42 +0000
committerReid Kleckner <rnk@google.com>2018-03-15 21:18:42 +0000
commite9dc30d2c2add1bdc363a517f87d5a5ae26d094d (patch)
treeaa493988ce3264074a328f509774ab3a2de5403f /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parentf1a11f87a04672d1b0d8e355ece1516a40477362 (diff)
downloadbcm5719-llvm-e9dc30d2c2add1bdc363a517f87d5a5ae26d094d.tar.gz
bcm5719-llvm-e9dc30d2c2add1bdc363a517f87d5a5ae26d094d.zip
[codeview] Fix sense of the assertion about hashtable insertion
llvm-svn: 327669
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index 1ffc589d7f9..89a7974e473 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/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<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();
OpenPOWER on IntegriCloud