Skip to content

Commit 1138a49

Browse files
authored
[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.
1 parent 2f8de7b commit 1138a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/test/API/tools/lldb-server/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static void trap() {
148148
asm volatile("udf #254");
149149
#elif defined(__powerpc__)
150150
asm volatile("trap");
151-
#elif __has_builtin(__builtin_debugtrap())
151+
#elif __has_builtin(__builtin_debugtrap)
152152
__builtin_debugtrap();
153153
#else
154154
#warning Don't know how to generate a trap. Some tests may fail.

0 commit comments

Comments
 (0)