Skip to content

Commit 2292a2e

Browse files
author
git apple-llvm automerger
committed
Merge commit '10d4b752a7fc' from llvm.org/master into apple/master
2 parents c9b3a38 + 10d4b75 commit 2292a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/CrossDSOCFI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void CrossDSOCFI::buildCFICheck(Module &M) {
104104
FunctionCallee C = M.getOrInsertFunction(
105105
"__cfi_check", Type::getVoidTy(Ctx), Type::getInt64Ty(Ctx),
106106
Type::getInt8PtrTy(Ctx), Type::getInt8PtrTy(Ctx));
107-
Function *F = dyn_cast<Function>(C.getCallee());
107+
Function *F = cast<Function>(C.getCallee());
108108
// Take over the existing function. The frontend emits a weak stub so that the
109109
// linker knows about the symbol; this pass replaces the function body.
110110
F->deleteBody();

0 commit comments

Comments
 (0)