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 | c1cf814c8b660c98912ac00d00dfd24b9f23900c (patch) | |
tree | 132c76591169d15265c80e614565bdeb12b1ab68 /llvm/lib/Support/Debug.cpp | |
parent | ff3c8b7eaf2de9640a4b99cedacd370511897a92 (diff) | |
download | llvm-c1cf814c8b660c98912ac00d00dfd24b9f23900c.zip llvm-c1cf814c8b660c98912ac00d00dfd24b9f23900c.tar.gz llvm-c1cf814c8b660c98912ac00d00dfd24b9f23900c.tar.bz2 |
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.
llvm-svn: 101372
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
0 files changed, 0 insertions, 0 deletions