[PATCH] D95244: [clang][AST] Handle overload callee type in CallExpr::getCallReturnType.
Balázs Kéri via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 25 07:04:51 PST 2021
balazske added inline comments.
================
Comment at: clang/lib/AST/Expr.cpp:1402
const FunctionType *FnType = CalleeType->castAs<FunctionType>();
return FnType->getReturnType();
----------------
Here occurs the problem: If `CalleeType` is of type `BuiltinType::Overload` it does not cast to `FunctionType`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95244/new/
https://reviews.llvm.org/D95244
More information about the cfe-commits
mailing list