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,7 +1058,8 @@ void CodeGenFunction::EmitFunctionEpilog(const CGFunctionInfo &FI) {
|
||||||
}
|
}
|
||||||
|
|
||||||
llvm::Instruction *Ret = RV ? Builder.CreateRet(RV) : Builder.CreateRetVoid();
|
llvm::Instruction *Ret = RV ? Builder.CreateRet(RV) : Builder.CreateRetVoid();
|
||||||
Ret->setDebugLoc(RetDbgLoc);
|
if (!RetDbgLoc.isUnknown())
|
||||||
|
Ret->setDebugLoc(RetDbgLoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
RValue CodeGenFunction::EmitDelegateCallArg(const VarDecl *Param) {
|
RValue CodeGenFunction::EmitDelegateCallArg(const VarDecl *Param) {
|
||||||
|
|
Loading…
Reference in New Issue