diff options
author | Reid Kleckner <rnk@google.com> | 2018-03-15 21:18:42 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2018-03-15 21:18:42 +0000 |
commit | e9dc30d2c2add1bdc363a517f87d5a5ae26d094d (patch) | |
tree | aa493988ce3264074a328f509774ab3a2de5403f /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | f1a11f87a04672d1b0d8e355ece1516a40477362 (diff) | |
download | bcm5719-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.cpp | 2 |
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(); |