[llvm-commits] [dragonegg] r148564 - /dragonegg/trunk/src/Types.cpp

Benjamin Kramer benny.kra at googlemail.com
Fri Jan 20 11:33:09 PST 2012


Author: d0k
Date: Fri Jan 20 13:33:09 2012
New Revision: 148564

URL: http://llvm.org/viewvc/llvm-project?rev=148564&view=rev
Log:
Port the fix from the dead compiler to the shiny new compiler plugin.

Modified:
    dragonegg/trunk/src/Types.cpp

Modified: dragonegg/trunk/src/Types.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Types.cpp?rev=148564&r1=148563&r2=148564&view=diff
==============================================================================
--- dragonegg/trunk/src/Types.cpp (original)
+++ dragonegg/trunk/src/Types.cpp Fri Jan 20 13:33:09 2012
@@ -861,7 +861,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