commit | af68d4ed6da11634e2915b3ca31da354369e4bc1 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Apr 15 15:53:31 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Apr 15 15:53:31 2010 +0000 |
tree | ef2ec8549df30430b2a0f9957b3c5b4b6bfb4df7 | |
parent | fb937b8c5f1c5dc9cfd4223b5cae230cc42b0287 [diff] |
Fix a few cases where enum constant handling was using ASTContext::getTypeSize() rather than ASTContext::getIntWidth() for the width of an integral type. The former includes padding for bools (to the target's size) while the latter does not, so we woud end up zero-extending bools to the target width when we shouldn't. Fixes a crash-on-valid in the included test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101372 91177308-0d34-0410-b5e6-96231b3b80d8