From 0f8f039a03d96cff8bbb0613dca6017815413d7c 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 --- lib/Transforms/Utils/CloneFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Utils/CloneFunction.cpp b/lib/Transforms/Utils/CloneFunction.cpp index 4f0088246ea..4f1052d8143 100644 --- a/lib/Transforms/Utils/CloneFunction.cpp +++ b/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;