summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/const-eval.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-18 00:32:53 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-18 00:32:53 +0000
commit62347a0c55e2a9872cb8ad2771c4ef94052e025b (patch)
treeb6af2bb0c5db7c26f1c45c32aa82fe977951cc64 /clang/test/Sema/const-eval.c
parent1acc629bfd9fa9f772a849335467cefc9e2f4ab9 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud