mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 11:56:38 +00:00
[lldb] Fix build problem in llgs tests for RISC-V (#127091)
During testing of LLDB on RISC-V target, tests from the llgs category were built with an error: `Error when building test subject.` ``` llvm-project/lldb/test/API/tools/lldb-server/main.cpp:151:40: error: missing ')' after '__builtin_debugtrap' 151 | #elif __has_builtin(__builtin_debugtrap()) | ~~~~~~~~~~~~~~~~~~~^ llvm-project/lldb/test/API/tools/lldb-server/main.cpp:151:20: note: to match this '(' 151 | #elif __has_builtin(__builtin_debugtrap()) | ^ ``` This patch fixes this error.
This commit is contained in:
parent
2f8de7b466
commit
1138a4964a
@ -148,7 +148,7 @@ static void trap() {
|
||||
asm volatile("udf #254");
|
||||
#elif defined(__powerpc__)
|
||||
asm volatile("trap");
|
||||
#elif __has_builtin(__builtin_debugtrap())
|
||||
#elif __has_builtin(__builtin_debugtrap)
|
||||
__builtin_debugtrap();
|
||||
#else
|
||||
#warning Don't know how to generate a trap. Some tests may fail.
|
||||
|
Loading…
x
Reference in New Issue
Block a user