forked from OSchip/llvm-project
Fix regression caused by r108911.
Do not override known debug loc with unknown debug loc. This is tested by sections.exp in gdb testsuite. llvm-svn: 109022
This commit is contained in:
parent
846b9e15db
commit
65497583b5
|
@ -1058,6 +1058,7 @@ void CodeGenFunction::EmitFunctionEpilog(const CGFunctionInfo &FI) {
|
|||
}
|
||||
|
||||
llvm::Instruction *Ret = RV ? Builder.CreateRet(RV) : Builder.CreateRetVoid();
|
||||
if (!RetDbgLoc.isUnknown())
|
||||
Ret->setDebugLoc(RetDbgLoc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue