[llvm] r277693 - Forgot the dyn_cast_or_null intended for r277691.
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 3 21:47:19 PDT 2016
Author: majnemer
Date: Wed Aug 3 23:47:18 2016
New Revision: 277693
URL: http://llvm.org/viewvc/llvm-project?rev=277693&view=rev
Log:
Forgot the dyn_cast_or_null intended for r277691.
Modified:
llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp
Modified: llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp?rev=277693&r1=277692&r2=277693&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp Wed Aug 3 23:47:18 2016
@@ -562,7 +562,7 @@ void llvm::CloneAndPruneIntoFromInst(Fun
// 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<Instruction>(VMap.lookup(OrigV));
+ auto *I = dyn_cast_or_null<Instruction>(VMap.lookup(OrigV));
if (!I)
continue;
More information about the llvm-commits
mailing list