mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-25 04:51:38 +00:00
sanitizer: Fix -Wpedantic GCC warning
Fixes: sanitizer_stacktrace.h:212:5: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] Differential Revision: https://reviews.llvm.org/D113292
This commit is contained in:
parent
26a8ceba3e
commit
78d3e0a4f1
@ -209,11 +209,11 @@ static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) {
|
||||
// StackTrace::GetCurrentPc() faster.
|
||||
#if defined(__x86_64__)
|
||||
# define GET_CURRENT_PC() \
|
||||
({ \
|
||||
(__extension__({ \
|
||||
uptr pc; \
|
||||
asm("lea 0(%%rip), %0" : "=r"(pc)); \
|
||||
pc; \
|
||||
})
|
||||
}))
|
||||
#else
|
||||
# define GET_CURRENT_PC() StackTrace::GetCurrentPc()
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user