[llvm-commits] [llvm-gcc-4.2] r148557 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

Benjamin Kramer benny.kra at googlemail.com
Fri Jan 20 11:08:16 PST 2012


Author: d0k
Date: Fri Jan 20 13:08:15 2012
New Revision: 148557

URL: http://llvm.org/viewvc/llvm-project?rev=148557&view=rev
Log:
Fix the dead compiler once more.

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=148557&r1=148556&r2=148557&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Fri Jan 20 13:08:15 2012
@@ -1025,7 +1025,7 @@
 #endif // LLVM_TARGET_ENABLE_REGPARM
     
     if (PAttributes != Attribute::None) {
-      HasByVal |= PAttributes & Attribute::ByVal;
+      HasByVal |= (PAttributes & Attribute::ByVal) != Attribute::None;
 
       // If the argument is split into multiple scalars, assign the
       // attributes to all scalars of the aggregate.





More information about the llvm-commits mailing list