Skip to content

Commit 66e7129

Browse files
committed
Removed a local variable.
1 parent 54361b9 commit 66e7129

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,12 @@ void NORETURN CheckFailed(const char *file, int, const char *cond, u64, u64) {
110110

111111
#define HANDLER_RECOVER(name, msg) \
112112
INTERFACE void __ubsan_handle_##name##_minimal() { \
113-
uintptr_t caller = GET_CALLER_PC(); \
114-
__ubsan_report_error(msg, caller, 0); \
113+
__ubsan_report_error(msg, GET_CALLER_PC(), 0); \
115114
}
116115

117116
#define HANDLER_NORECOVER(name, msg) \
118117
INTERFACE void __ubsan_handle_##name##_minimal_abort() { \
119-
uintptr_t caller = GET_CALLER_PC(); \
120-
__ubsan_report_error(msg, caller, 1); \
118+
__ubsan_report_error(msg, GET_CALLER_PC(), 1); \
121119
}
122120

123121
#define HANDLER(name, msg) \

0 commit comments

Comments
 (0)