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/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
| 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/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 61b971e1d77..3073dfe9cc6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -792,7 +792,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, BI->dump(); } - if (BI->getType() != Type::getVoidTy(*CurDAG->getContext())) { + if (!BI->getType()->isVoidTy()) { unsigned &R = FuncInfo->ValueMap[BI]; if (!R) R = FuncInfo->CreateRegForValue(BI); |

