[PATCH] D55794: [asan] In llvm.asan.globals, allow entries to be non-GlobalVariable and skip over them

John McCall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 18 13:05:49 PST 2018


rjmccall accepted this revision.
rjmccall added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/Transforms/Instrumentation/AddressSanitizer.cpp:448
+      auto *StrippedV = V->stripPointerCasts();
+      auto *GV = dyn_cast_or_null<GlobalVariable>(StrippedV);
       if (!GV) continue;
----------------
This can now just be `dyn_cast`.  But LGTM with that.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55794/new/

https://reviews.llvm.org/D55794





More information about the llvm-commits mailing list