[llvm-commits] [llvm] r171727 - /llvm/trunk/include/llvm/CodeGen/CallingConvLower.h

NAKAMURA Takumi geek4civic at gmail.com
Mon Jan 7 03:13:51 PST 2013


Author: chapuni
Date: Mon Jan  7 05:13:51 2013
New Revision: 171727

URL: http://llvm.org/viewvc/llvm-project?rev=171727&view=rev
Log:
CallingConvLower.h: Use bitfields like unsigned:1 instead of bool:1 .

Some compilers might be confused if bool were potentially signed integer. In my case, g++-4.7.0 miscompiled CodeGen/ARM.

Modified:
    llvm/trunk/include/llvm/CodeGen/CallingConvLower.h

Modified: llvm/trunk/include/llvm/CodeGen/CallingConvLower.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/CallingConvLower.h?rev=171727&r1=171726&r2=171727&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/CallingConvLower.h (original)
+++ llvm/trunk/include/llvm/CodeGen/CallingConvLower.h Mon Jan  7 05:13:51 2013
@@ -50,10 +50,10 @@
   unsigned Loc;
 
   /// isMem - True if this is a memory loc, false if it is a register loc.
-  bool isMem : 1;
+  unsigned isMem : 1;
 
   /// isCustom - True if this arg/retval requires special handling.
-  bool isCustom : 1;
+  unsigned isCustom : 1;
 
   /// Information about how the value is assigned.
   LocInfo HTP : 6;





More information about the llvm-commits mailing list