aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR/TypeFinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/IR/TypeFinder.cpp')
-rw-r--r--lib/IR/TypeFinder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/TypeFinder.cpp b/lib/IR/TypeFinder.cpp
index e2fb8f8..1d2b808 100644
--- a/lib/IR/TypeFinder.cpp
+++ b/lib/IR/TypeFinder.cpp
@@ -68,7 +68,7 @@ void TypeFinder::run(const Module &M, bool onlyNamed) {
// instructions with this loop.)
for (User::const_op_iterator OI = I.op_begin(), OE = I.op_end();
OI != OE; ++OI)
- if (!isa<Instruction>(OI))
+ if (*OI && !isa<Instruction>(OI))
incorporateValue(*OI);
// Incorporate types hiding in metadata.