diff options
author | Richard Trieu <rtrieu@google.com> | 2012-01-21 02:59:18 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2012-01-21 02:59:18 +0000 |
commit | 0d7305470ecf87f098670849faf255d22dedc514 (patch) | |
tree | c5847c21ac54eeb91180551f51da202e191502b3 /llvm/lib/CodeGen/LiveVariables.cpp | |
parent | 5013c699e46f5d722f5018f51dabc605d353b205 (diff) | |
download | bcm5719-llvm-0d7305470ecf87f098670849faf255d22dedc514.tar.gz bcm5719-llvm-0d7305470ecf87f098670849faf255d22dedc514.zip |
Fix code so that a SkipUntil will ignore semicolons when skipping a
function body. This keeps the brace count accurate to prevent
additional errors. Also, moved the caret from the brace to the function
name.
Code:
class F{ int Foo{ return 1; } };
Fixed error:
parameters.cc:1:14: error: function definition does not declare parameters
class F{ int Foo{ return 1; } };
^
1 error generated.
Old errors:
parameters.cc:1:17: error: function definition does not declare parameters
class F{ int Foo{ return 1; } };
^
parameters.cc:1:30: error: expected ';' after class
class F{ int Foo{ return 1; } };
^
;
parameters.cc:1:31: error: expected external declaration
class F{ int Foo{ return 1; } };
^
3 errors generated.
llvm-svn: 148621
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
0 files changed, 0 insertions, 0 deletions