Skip to content

Commit 765d836

Browse files
committed
[DebugInfo] Changed way for getting callee function
1 parent 287b944 commit 765d836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGDebugInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4805,7 +4805,7 @@ void CGDebugInfo::EmitFuncDeclForCallSite(llvm::CallBase *CallOrInvoke,
48054805
const FunctionDecl *CalleeDecl) {
48064806
if (!CallOrInvoke)
48074807
return;
4808-
auto *Func = CallOrInvoke->getCalledFunction();
4808+
auto *Func = dyn_cast_or_null<Function>(CallOrInvoke->getCalledOperand());
48094809
if (!Func)
48104810
return;
48114811
if (Func->getSubprogram())

0 commit comments

Comments
 (0)