diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-15 15:53:31 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-15 15:53:31 +0000 |
commit | af68d4ed6da11634e2915b3ca31da354369e4bc1 (patch) | |
tree | ef2ec8549df30430b2a0f9957b3c5b4b6bfb4df7 /lib/Checker/GRExprEngine.cpp | |
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
Diffstat (limited to 'lib/Checker/GRExprEngine.cpp')
0 files changed, 0 insertions, 0 deletions