aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-09-22 19:04:13 +0000
committerChris Lattner <sabre@nondot.org>2007-09-22 19:04:13 +0000
commit987b15db39745cd7fb2e634ba1a4b85469ac9131 (patch)
treef436ce230748694b8755a4281edc9faf481a25b0 /CodeGen/ModuleBuilder.cpp
parent3d2313ef5de46228b157b1f1f6e306812dae3942 (diff)
Use the APFloat routines to evaluate FP immediates as
integer constant expressions. The only questionable thing is that we now reject: void foo() { switch (1) { case (int)1.0e10000: ; } } with: t.c:5:13: error: case label does not reduce to an integer constant case (int)1.0e10000: ~~~~~^~~~~~~~~ GCC accepts this, emitting the pedwarn: t.c:5: warning: floating constant exceeds range of 'double' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions