[llvm-commits] [llvm-gcc-4.2] r46301 - /llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jan 23 19:07:01 PST 2008
Author: evancheng
Date: Wed Jan 23 21:06:59 2008
New Revision: 46301
URL: http://llvm.org/viewvc/llvm-project?rev=46301&view=rev
Log:
Do not use getTypeID().
Modified:
llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp?rev=46301&r1=46300&r2=46301&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp Wed Jan 23 21:06:59 2008
@@ -683,7 +683,7 @@
for (Type::subtype_iterator I = Ty->subtype_begin(), E = Ty->subtype_end();
I != E; ++I) {
const Type *STy = I->get();
- if (!STy->isIntOrIntVector() && STy->getTypeID() != Type::PointerTyID)
+ if (!STy->isIntOrIntVector() && !isa<PointerType>(STy))
return false;
}
return true;
More information about the llvm-commits
mailing list