File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
compiler-rt/lib/sanitizer_common Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -239,13 +239,15 @@ void RemoveANSIEscapeSequencesFromString(char *buffer);
239
239
void Printf (const char *format, ...) FORMAT(1 , 2 );
240
240
void Report (const char *format, ...) FORMAT(1 , 2 );
241
241
void SetPrintfAndReportCallback (void (*callback)(const char *));
242
- #define VReport (level, ...) \
243
- do { \
244
- if ((uptr)Verbosity () >= (level)) Report (__VA_ARGS__); \
242
+ #define VReport (level, ...) \
243
+ do { \
244
+ if (UNLIKELY ((uptr)Verbosity () >= (level))) \
245
+ Report (__VA_ARGS__); \
245
246
} while (0 )
246
- #define VPrintf (level, ...) \
247
- do { \
248
- if ((uptr)Verbosity () >= (level)) Printf (__VA_ARGS__); \
247
+ #define VPrintf (level, ...) \
248
+ do { \
249
+ if (UNLIKELY ((uptr)Verbosity () >= (level))) \
250
+ Printf (__VA_ARGS__); \
249
251
} while (0 )
250
252
251
253
// Lock sanitizer error reporting and protects against nested errors.
You can’t perform that action at this time.
0 commit comments