[PATCH] D136078: Use-after-return sanitizer binary metadata

Dmitry Vyukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 29 08:08:16 PST 2022


dvyukov marked an inline comment as done.
dvyukov added inline comments.


================
Comment at: llvm/test/Instrumentation/SanitizerBinaryMetadata/uar.cpp:19
+void non_empty_function() {
+  // Completely empty functions don't get uar metadata.
+  volatile int x;
----------------
melver wrote:
> Is this comment out of place?
If a function is completely empty, it won't be marked with UAR feature metadata.
This is super-primitive approximation of the actual analysis we should do (the function has addr-taken/escaped locals/arguments).
So I needed at least somebody for the function.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D136078



More information about the cfe-commits mailing list