diff options
| author | Justin Bogner <mail@justinbogner.com> | 2013-12-10 21:29:48 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2013-12-10 21:29:48 +0000 |
| commit | 6f5607388015fab9833103f881df8850b2c9bad6 (patch) | |
| tree | 181867997a57abe09dba049de27920b8e5a00ff0 /lib/CodeGen/CGExprComplex.cpp | |
| parent | a48dd5fc9f4adcef4e23851d164a57b7c0c95631 (diff) | |
| download | clang-6f5607388015fab9833103f881df8850b2c9bad6.tar.gz clang-6f5607388015fab9833103f881df8850b2c9bad6.tar.bz2 clang-6f5607388015fab9833103f881df8850b2c9bad6.tar.xz | |
Parse: Avoid crashing on unterminated top-level asm strings
When parsing invalid top-level asm statements, we were ignoring the
return code of the SkipUntil we used for recovery. This led to crashes
when we hit the end of file and tried to continue parsing anyway.
This fixes the crash and adds a couple of tests for parsing related
problems.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions
