mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 12:36:07 +00:00

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
6 lines
165 B
C++
6 lines
165 B
C++
// RUN: %clang_cc1 -Wno-slh-asm-goto -mspeculative-load-hardening -fsyntax-only -verify %s
|
|
|
|
void f() {
|
|
__asm goto("movl %ecx, %edx"); // expected-no-diagnostics
|
|
}
|