]> granicus.if.org Git - clang/commit
Fix -fno-gnu-inline-asm doesn't catch file scope asm
authorSteven Wu <stevenwu@apple.com>
Tue, 28 Apr 2015 21:49:09 +0000 (21:49 +0000)
committerSteven Wu <stevenwu@apple.com>
Tue, 28 Apr 2015 21:49:09 +0000 (21:49 +0000)
commit6942f2a3e029037cecd1604c35c368724df738eb
treeb838b7fb5f5a690571ad3091a2902f22fb6ec5ce
parenta136bf4b57dfc23bfdb3aa4a13b67ab7d5322afe
Fix -fno-gnu-inline-asm doesn't catch file scope asm

Summary:
FileScopeAsm should be treated the same as funcion level inline asm.
-fno-gnu-inline-asm should trigger an error if file scope asm is used.
I missed this case from r226340. This should not affect ms-extension
because it is not allowed in the file scope.

Reviewers: bob.wilson, rnk

Reviewed By: rnk

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D9328

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236044 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/Parser.cpp
test/Parser/no-gnu-inline-asm.c