summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-08-04 04:47:18 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-08-04 04:47:18 +0000
commit4eefd6bca47121cfd5f0a6b3d78576a0c0404afa (patch)
tree4c3d80e4750b2f2f23a5bc9b984aa80671b022c4 /llvm/lib
parent3076db8da02d6345ba45dec4a3afd999a04ff8b1 (diff)
downloadbcm5719-llvm-4eefd6bca47121cfd5f0a6b3d78576a0c0404afa.tar.gz
bcm5719-llvm-4eefd6bca47121cfd5f0a6b3d78576a0c0404afa.zip
Forgot the dyn_cast_or_null intended for r277691.
llvm-svn: 277693
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 4f0088246ea..4f1052d8143 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<Instruction>(VMap.lookup(OrigV));
+ auto *I = dyn_cast_or_null<Instruction>(VMap.lookup(OrigV));
if (!I)
continue;
OpenPOWER on IntegriCloud