summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index b219b7a67dc..1fd616c6488 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -721,7 +721,7 @@ RValue CodeGenFunction::EmitCallExpr(llvm::Value *Callee, QualType FnType,
// The callee type will always be a pointer to function type, get the function
// type.
FnType = FnType->getAsPointerType()->getPointeeType();
- QualType ResultType = cast<FunctionType>(FnType)->getResultType();
+ QualType ResultType = FnType->getAsFunctionType()->getResultType();
llvm::SmallVector<llvm::Value*, 16> Args;
OpenPOWER on IntegriCloud