aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/PreISelIntrinsicLowering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/PreISelIntrinsicLowering.cpp')
-rw-r--r--lib/CodeGen/PreISelIntrinsicLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PreISelIntrinsicLowering.cpp b/lib/CodeGen/PreISelIntrinsicLowering.cpp
index 2752e186875c..0d2f6f99ca96 100644
--- a/lib/CodeGen/PreISelIntrinsicLowering.cpp
+++ b/lib/CodeGen/PreISelIntrinsicLowering.cpp
@@ -76,7 +76,7 @@ static bool lowerObjCCall(Function &F, const char *NewFn,
}
for (auto I = F.use_begin(), E = F.use_end(); I != E;) {
- auto *CI = dyn_cast<CallInst>(I->getUser());
+ auto *CI = cast<CallInst>(I->getUser());
assert(CI->getCalledFunction() && "Cannot lower an indirect call!");
++I;