diff options
| author | Chris Lattner <sabre@nondot.org> | 2012-04-28 16:12:17 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2012-04-28 16:12:17 +0000 |
| commit | 02f1b61849dc8743d20cd1d802dabc89dd72661d (patch) | |
| tree | 5b03e39dd7089578bdbd48ca91b09844547b7022 /llvm/lib/CodeGen/StackSlotColoring.cpp | |
| parent | a81efed0bedd0771bf5ca9320d7cad8c89210028 (diff) | |
| download | bcm5719-llvm-02f1b61849dc8743d20cd1d802dabc89dd72661d.tar.gz bcm5719-llvm-02f1b61849dc8743d20cd1d802dabc89dd72661d.zip | |
switch some uses of ExpectAndConsume(tok::semi to use ExpectAndConsumeSemi. This allows
us to improve this diagnostic (telling us to insert another ")":
t.c:2:19: error: expected ';' at end of declaration
int x = 4+(5-12));
^
;
to:
t.c:2:19: error: extraneous ')' before ';'
int x = 4+(5-12));
^
...telling us to remove the ")". This is PR12595. There are more uses of ExpectAndConsumeSemi
that could be switched over, but I don't hit them on a daily basis :)
llvm-svn: 155759
Diffstat (limited to 'llvm/lib/CodeGen/StackSlotColoring.cpp')
0 files changed, 0 insertions, 0 deletions

