Skip to content

Commit dc95849

Browse files
committed
[clang][DebugInfo] Changed way of getting callee function
1 parent 287b944 commit dc95849

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/CGDebugInfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4805,7 +4805,8 @@ void CGDebugInfo::EmitFuncDeclForCallSite(llvm::CallBase *CallOrInvoke,
48054805
const FunctionDecl *CalleeDecl) {
48064806
if (!CallOrInvoke)
48074807
return;
4808-
auto *Func = CallOrInvoke->getCalledFunction();
4808+
auto *Func =
4809+
dyn_cast<llvm::Function>(CallOrInvoke->getCalledOperand());
48094810
if (!Func)
48104811
return;
48114812
if (Func->getSubprogram())

0 commit comments

Comments
 (0)