forked from OSchip/llvm-project
[codeview] Fix sense of the assertion about hashtable insertion
llvm-svn: 327669
This commit is contained in:
parent
f1a11f87a0
commit
e9dc30d2c2
|
@ -1163,7 +1163,7 @@ void CodeViewDebug::collectVariableInfo(const DISubprogram *SP) {
|
||||||
void CodeViewDebug::beginFunctionImpl(const MachineFunction *MF) {
|
void CodeViewDebug::beginFunctionImpl(const MachineFunction *MF) {
|
||||||
const Function &GV = MF->getFunction();
|
const Function &GV = MF->getFunction();
|
||||||
auto Insertion = FnDebugInfo.insert({&GV, llvm::make_unique<FunctionInfo>()});
|
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 = Insertion.first->second.get();
|
||||||
CurFn->FuncId = NextFuncId++;
|
CurFn->FuncId = NextFuncId++;
|
||||||
CurFn->Begin = Asm->getFunctionBegin();
|
CurFn->Begin = Asm->getFunctionBegin();
|
||||||
|
|
Loading…
Reference in New Issue