[codeview] Fix sense of the assertion about hashtable insertion

llvm-svn: 327669
This commit is contained in:
Reid Kleckner 2018-03-15 21:18:42 +00:00
parent f1a11f87a0
commit e9dc30d2c2
1 changed files with 1 additions and 1 deletions

View File

@ -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();