In general, don't look through explicit casts when trying
to find the called declaration. Explicit casts can radically change the semantics of a call, and it's no longer really a builtin call any more than it would be a builtin call if you stored the function pointer into a variable and called that. llvm-svn: 139659
This commit is contained in:
parent
fc9c4a730e
commit
e3ca8eb049
|
@ -770,7 +770,7 @@ CallExpr::CallExpr(ASTContext &C, StmtClass SC, unsigned NumPreArgs,
|
|||
}
|
||||
|
||||
Decl *CallExpr::getCalleeDecl() {
|
||||
Expr *CEE = getCallee()->IgnoreParenCasts();
|
||||
Expr *CEE = getCallee()->IgnoreParenImpCasts();
|
||||
|
||||
while (SubstNonTypeTemplateParmExpr *NTTP
|
||||
= dyn_cast<SubstNonTypeTemplateParmExpr>(CEE)) {
|
||||
|
|
Loading…
Reference in New Issue