diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-05 13:12:22 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-05 13:12:22 +0000 |
| commit | ccce8bae14a8539e7c9e8d694e2126dd30dc774f (patch) | |
| tree | 56fd200381c4089dabdb97ce70eb595db1ae7bd4 /llvm/lib/Bitcode/Writer | |
| parent | f22afe32f905c0b229d6e55e913e8584249747f3 (diff) | |
| download | bcm5719-llvm-ccce8bae14a8539e7c9e8d694e2126dd30dc774f.tar.gz bcm5719-llvm-ccce8bae14a8539e7c9e8d694e2126dd30dc774f.zip | |
Avoid going through the LLVMContext for type equality where it's safe to dereference the type pointer.
llvm-svn: 92726
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
| -rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp index d8128dba1a1..861de84e34b 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp @@ -382,7 +382,7 @@ void ValueEnumerator::incorporateFunction(const Function &F) { // Add all of the instructions. for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB) { for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I!=E; ++I) { - if (I->getType() != Type::getVoidTy(F.getContext())) + if (!I->getType()->isVoidTy()) EnumerateValue(I); } } |

