mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-20 10:30:17 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -50,10 +50,10 @@ private:
|
|||||||
unsigned Loc;
|
unsigned Loc;
|
||||||
|
|
||||||
/// isMem - True if this is a memory loc, false if it is a register 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.
|
/// isCustom - True if this arg/retval requires special handling.
|
||||||
bool isCustom : 1;
|
unsigned isCustom : 1;
|
||||||
|
|
||||||
/// Information about how the value is assigned.
|
/// Information about how the value is assigned.
|
||||||
LocInfo HTP : 6;
|
LocInfo HTP : 6;
|
||||||
|
Reference in New Issue
Block a user