[PATCH] Switch ASan to use ThreadRegistry from sanitizer_common.

Kostya Serebryany kcc at google.com
Wed Mar 20 22:58:26 PDT 2013



================
Comment at: lib/asan/asan_report.cc:333
@@ +332,3 @@
+  asanThreadRegistry().CheckLocked();
+  AsanThreadContext *t = static_cast<AsanThreadContext*>(
+      asanThreadRegistry().GetThreadLocked(tid));
----------------
can you get rid of these ugly static casts? 
perhaps by overriding GetThreadLocked to return a proper type.


http://llvm-reviews.chandlerc.com/D555



More information about the llvm-commits mailing list