]> granicus.if.org Git - clang/commit
Work towards fixing crasher with compound literals...
authorSteve Naroff <snaroff@apple.com>
Thu, 19 Jul 2007 01:06:55 +0000 (01:06 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 19 Jul 2007 01:06:55 +0000 (01:06 +0000)
commit4aa88f8d8469ced8fe04a0c411bbccc5d313e055
treea97e5da5cc19f88582b7950ae237a1150160ab1f
parent5265af5b555f703be365dbc32c4e518fe38d4d9a
Work towards fixing crasher with compound literals...

Before this commit, we crashed in ParseBinOp...

[dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang -parse-ast-check compound_literal.c
SemaExpr.cpp:1298: failed assertion `(rhs != 0) && "ParseBinOp(): missing right expression"'

With this commit, we still crash in the newly added action ParseCompoundLiteral (which is progress:-)

[dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang -parse-ast-check compound_literal.c
SemaExpr.cpp:478: failed assertion `(Op != 0) && "ParseCompoundLiteral(): missing expression"'

The crash go away once the actions return AST nodes. I will do this in a separate commit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40032 91177308-0d34-0410-b5e6-96231b3b80d8
Parse/ParseExpr.cpp
Parse/ParseInit.cpp
Sema/Sema.h
Sema/SemaExpr.cpp
include/clang/Parse/Action.h
test/Parser/compound_literal.c [new file with mode: 0644]