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);
239239void Printf (const char *format, ...) FORMAT(1 , 2 );
240240void Report (const char *format, ...) FORMAT(1 , 2 );
241241void 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__); \
245246 } 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__); \
249251 } while (0 )
250252
251253// Lock sanitizer error reporting and protects against nested errors.
You can’t perform that action at this time.
0 commit comments