Parse: Concatenated string literals should be verified in inline asm
While we would correctly handle asm("foo") and reject asm(L"bar"), we weren't careful to handle cases where an ascii literal could be concatenated with a wide literal. This fixes PR21822. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223992 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticSemaKinds.td 0 additions, 1 deletioninclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Parse/Parser.cpp 13 additions, 16 deletionslib/Parse/Parser.cpp
- lib/Sema/SemaStmtAsm.cpp 4 additions, 12 deletionslib/Sema/SemaStmtAsm.cpp
- test/Parser/asm.cpp 1 addition, 0 deletionstest/Parser/asm.cpp
Loading
Please register or sign in to comment