From 4eefd6bca47121cfd5f0a6b3d78576a0c0404afa Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 4 Aug 2016 04:47:18 +0000 Subject: [PATCH] Forgot the dyn_cast_or_null intended for r277691. llvm-svn: 277693 --- llvm/lib/Transforms/Utils/CloneFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp index 4f00882..4f1052d 100644 --- a/llvm/lib/Transforms/Utils/CloneFunction.cpp +++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp @@ -562,7 +562,7 @@ void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc, // Note that we must test the size on each iteration, the worklist can grow. for (unsigned Idx = 0; Idx != Worklist.size(); ++Idx) { const Value *OrigV = Worklist[Idx]; - auto *I = cast_or_null(VMap.lookup(OrigV)); + auto *I = dyn_cast_or_null(VMap.lookup(OrigV)); if (!I) continue; -- 2.7.4