commit | f012705c7e4ca8cf90b6b734ce1d5355daca5ba5 | [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 | 804272c8d6fd960c47c8cbc1603aba3fe5a65ea8 [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/FunctionLoweringInfo.cpp b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index e3b25c2..4868c9e 100644 --- a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
@@ -113,7 +113,7 @@ return; } // Interpret void as zero return values. - if (Ty == Type::getVoidTy(Ty->getContext())) + if (Ty->isVoidTy()) return; // Base case: we can get an EVT for this LLVM IR type. ValueVTs.push_back(TLI.getValueType(Ty));