1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

Forgot the dyn_cast_or_null intended for r277691.

llvm-svn: 277693
This commit is contained in:
David Majnemer 2016-08-04 04:47:18 +00:00
parent 3351460081
commit 0f8f039a03

View File

@ -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<Instruction>(VMap.lookup(OrigV));
auto *I = dyn_cast_or_null<Instruction>(VMap.lookup(OrigV));
if (!I)
continue;