diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-18 00:32:53 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-18 00:32:53 +0000 |
commit | 62347a0c55e2a9872cb8ad2771c4ef94052e025b (patch) | |
tree | b6af2bb0c5db7c26f1c45c32aa82fe977951cc64 /clang/test/Sema/const-eval.c | |
parent | 1acc629bfd9fa9f772a849335467cefc9e2f4ab9 (diff) | |
download | bcm5719-llvm-62347a0c55e2a9872cb8ad2771c4ef94052e025b.tar.gz bcm5719-llvm-62347a0c55e2a9872cb8ad2771c4ef94052e025b.zip |
Convert isIntegerConstantExpr to use ASTContext::MakeIntValue.
- This idiom ensures that the result will have the right width and
type.
- Tested on most of x86_64/llvm-test to satisfy my paranoia.
- This fixes at least the following bugs:
o UnaryTypeTraitExpr wasn't setting the width correctly.
o Arithmetic on _Bool wasn't setting the width correctly.
And probably a number more.
llvm-svn: 64864
Diffstat (limited to 'clang/test/Sema/const-eval.c')
0 files changed, 0 insertions, 0 deletions