[compiler-rt] de67bc8 - [HWASan symbolize] Write error to stderr.

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Tue May 10 17:01:25 PDT 2022


Author: Florian Mayer
Date: 2022-05-10T17:00:57-07:00
New Revision: de67bc8edb816a0a294f75d166efd745e5c6a465

URL: https://github.com/llvm/llvm-project/commit/de67bc8edb816a0a294f75d166efd745e5c6a465
DIFF: https://github.com/llvm/llvm-project/commit/de67bc8edb816a0a294f75d166efd745e5c6a465.diff

LOG: [HWASan symbolize] Write error to stderr.

Added: 
    

Modified: 
    compiler-rt/lib/hwasan/scripts/hwasan_symbolize

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/hwasan/scripts/hwasan_symbolize b/compiler-rt/lib/hwasan/scripts/hwasan_symbolize
index c1223877cac0..66a9c9279c45 100755
--- a/compiler-rt/lib/hwasan/scripts/hwasan_symbolize
+++ b/compiler-rt/lib/hwasan/scripts/hwasan_symbolize
@@ -268,7 +268,7 @@ class Symbolizer:
           except FileNotFoundError:
             continue
           except Exception as e:
-            print("Failed to parse {}: {}".format(filename, e))
+            print("Failed to parse {}: {}".format(filename, e), file=sys.stderr)
             continue
           if bid is not None:
             self.__index[bid] = filename


        


More information about the llvm-commits mailing list