diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-07 11:13:51 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-07 11:13:51 +0000 |
| commit | 2c79063731bbc1f2019106feb5f8dd9f714f0111 (patch) | |
| tree | 4d5386a21e846d3df7c03fb238b8174a0d1fbdb9 /llvm | |
| parent | b348328b5d584193ddecfbab09c657f42dcf857c (diff) | |
| download | bcm5719-llvm-2c79063731bbc1f2019106feb5f8dd9f714f0111.tar.gz bcm5719-llvm-2c79063731bbc1f2019106feb5f8dd9f714f0111.zip | |
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.
llvm-svn: 171727
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/CodeGen/CallingConvLower.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/CallingConvLower.h b/llvm/include/llvm/CodeGen/CallingConvLower.h index fab470bf537..c035e0777cc 100644 --- a/llvm/include/llvm/CodeGen/CallingConvLower.h +++ b/llvm/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; |

