[clang][asm goto][slh] Warn if asm goto + SLH
authorZola Bridges <zbrid@google.com>
Mon, 11 May 2020 20:23:54 +0000 (13:23 -0700)
committerZola Bridges <zbrid@google.com>
Wed, 20 May 2020 16:46:18 +0000 (09:46 -0700)
commit60ee885990982197013c71ff965a81e938184fd2
tree99e8cbfb133b9dba7692356297e6bfe63d86220c
parentad953a1ae156eda3740a99a3c874eda3f29f4eb2
[clang][asm goto][slh] Warn if asm goto + SLH

Summary:
Asm goto is not supported by SLH. Warn if an instance of asm goto is detected
while SLH is enabled.

Test included.

Reviewed By: jyu2

Differential Revision: https://reviews.llvm.org/D79743
clang/include/clang/Basic/DiagnosticCommonKinds.td
clang/lib/Parse/ParseStmtAsm.cpp
clang/test/Parser/slh-asm-goto-no-warn.cpp [new file with mode: 0644]
clang/test/Parser/slh-asm-goto.cpp [new file with mode: 0644]