diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-06-09 05:05:07 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-06-09 05:05:07 +0000 |
commit | 4caf055b9f08416d956590358796a1ed464b73f7 (patch) | |
tree | 85b102aa36d253e5714d60fddd1d88fdb4bc1491 /lib/CodeGen/CGDebugInfo.cpp | |
parent | c92e5e4e4d632343b1f5b34cbd1d583666b1f4f8 (diff) |
Add code to make test/CodeGen/struct-init.c work correctly without the
pointer cast hack currently in isIntegerConstantExpr
(in lib/AST/Expr.cpp). Also removes an odd test that even gcc doesn't accept.
The reason the pointer cast hack is relevant here is that it makes Sema
end up misinterpreting the relevant expression as a null pointer constant.
The reason for this patch is that I plan to remove the pointer cast hack
sometime soon because it causes strange issues, especially in its
current form; see my recent email to cfe-dev
"[PATCH] add constant expression evaluation to the AST and fix PR2413".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions