[PATCH] [RFC] Print exact source locations of global variables in ASan error reports.

Alexander Potapenko glider at google.com
Thu Jun 19 10:21:58 PDT 2014


Didn't look deep, but here's one note.

================
Comment at: projects/compiler-rt/lib/asan/asan_interface_internal.h:53
@@ -44,1 +52,3 @@
     uptr has_dynamic_init;   // Non-zero if the global has dynamic initializer.
+    __asan_global_source_location *location;  // Source location of a global,
+                                              // or NULL if it is unknown.
----------------
If you store file and line/column location separately you can probably save some memory.

http://reviews.llvm.org/D4203






More information about the llvm-commits mailing list