[llvm-commits] [llvm-gcc-4.2] r76305 - /llvm-gcc-4.2/trunk/gcc/llvm-abi.h
Duncan Sands
baldrick at free.fr
Sat Jul 18 03:36:19 PDT 2009
Author: baldrick
Date: Sat Jul 18 05:35:42 2009
New Revision: 76305
URL: http://llvm.org/viewvc/llvm-project?rev=76305&view=rev
Log:
Simplify type comparison. Pointed out by Nick Lewycky.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-abi.h
Modified: llvm-gcc-4.2/trunk/gcc/llvm-abi.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-abi.h?rev=76305&r1=76304&r2=76305&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-abi.h (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-abi.h Sat Jul 18 05:35:42 2009
@@ -435,7 +435,7 @@
// Figure out if this field is zero bits wide, e.g. {} or [0 x int]. Do
// not include variable sized fields here.
std::vector<const Type*> Elts;
- if (Ty->getTypeID() == Type::VoidTyID) {
+ if (Ty == Type::VoidTy) {
// Handle void explicitly as an opaque type.
const Type *OpTy = OpaqueType::get();
C.HandleScalarArgument(OpTy, type);
More information about the llvm-commits
mailing list