aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-07 11:13:51 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-07 11:13:51 +0000
commit32e0662db3a4b8e78623abd8f5044754fef1cc15 (patch)
treec1b39bc5a7eb61f5a6765a84060dc1eb584ceae2
parent1cbeaeb1944f6fd1ab0997201a47ea6c23e9a979 (diff)
downloadexternal_llvm-32e0662db3a4b8e78623abd8f5044754fef1cc15.zip
external_llvm-32e0662db3a4b8e78623abd8f5044754fef1cc15.tar.gz
external_llvm-32e0662db3a4b8e78623abd8f5044754fef1cc15.tar.bz2
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
-rw-r--r--include/llvm/CodeGen/CallingConvLower.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/CallingConvLower.h b/include/llvm/CodeGen/CallingConvLower.h
index fab470b..c035e07 100644
--- a/include/llvm/CodeGen/CallingConvLower.h
+++ b/include/llvm/CodeGen/CallingConvLower.h
@@ -50,10 +50,10 @@ private:
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;