Allow empty assembly string literal with -fno-gnu-inline-asm
authorSteven Wu <stevenwu@apple.com>
Tue, 12 May 2015 00:16:37 +0000 (00:16 +0000)
committerSteven Wu <stevenwu@apple.com>
Tue, 12 May 2015 00:16:37 +0000 (00:16 +0000)
commit18bbe191cdfe1b1bb64fc0d80ee5113f9cd56e4d
tree7149dd2bb2d391356fe0002e5ddd9beffb146562
parent0ddaf2bfb9a8b4ffba4e3ecf093b528ab1929791
Allow empty assembly string literal with -fno-gnu-inline-asm

Empty assembly string will not introduce assembly code in the output
binary and it is often used as a trick in the header to disable
optimizations. It doesn't conflict with the purpose of the option so it
is allowed with -fno-gnu-inline-asm flag.

llvm-svn: 237073
clang/lib/Parse/ParseStmtAsm.cpp
clang/lib/Parse/Parser.cpp
clang/test/Parser/no-gnu-inline-asm.c