commit | f2052d5e0eb5028a06f41d2cebb8e22b6876ebc0 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Tue Jan 05 13:12:22 2010 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Tue Jan 05 13:12:22 2010 +0000 |
tree | d1bcdd1cfc5ddc28894a9b9d6cbb2875d922e437 | |
parent | 6f722bc2a76cffdda850711eaa84651f9125eef1 [diff] [blame] |
Avoid going through the LLVMContext for type equality where it's safe to dereference the type pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92726 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 61b971e..3073dfe 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -792,7 +792,7 @@ BI->dump(); } - if (BI->getType() != Type::getVoidTy(*CurDAG->getContext())) { + if (!BI->getType()->isVoidTy()) { unsigned &R = FuncInfo->ValueMap[BI]; if (!R) R = FuncInfo->CreateRegForValue(BI);