vitalybuka added inline comments.
Comment at: compiler-rt/lib/hwasan/hwasan_mapping.h:54
+inline uptr GetShadowOffset() {
+ return SANITIZER_FUCHSIA ? 0 : __hwasan_shadow_memory_dynamic_address;
+}
mcgrathr wrote:
> vitalybuka wrote:
> > mcgrathr wrote:
> > > I
mcgrathr added inline comments.
Comment at: compiler-rt/lib/hwasan/hwasan_mapping.h:54
+inline uptr GetShadowOffset() {
+ return SANITIZER_FUCHSIA ? 0 : __hwasan_shadow_memory_dynamic_address;
+}
vitalybuka wrote:
> mcgrathr wrote:
> > I think you'll eventually
vitalybuka added inline comments.
Comment at: compiler-rt/lib/hwasan/hwasan_mapping.h:54
+inline uptr GetShadowOffset() {
+ return SANITIZER_FUCHSIA ? 0 : __hwasan_shadow_memory_dynamic_address;
+}
mcgrathr wrote:
> I think you'll eventually need to make this an
mcgrathr added inline comments.
Comment at: compiler-rt/lib/hwasan/hwasan_mapping.h:54
+inline uptr GetShadowOffset() {
+ return SANITIZER_FUCHSIA ? 0 : __hwasan_shadow_memory_dynamic_address;
+}
I think you'll eventually need to make this an `#if` or `if conste
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGfc006b3e5dc3: [compiler-rt][hwasan] Add GetShadowOffset
function (authored by leonardchan).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAS
leonardchan updated this revision to Diff 352186.
leonardchan marked 2 inline comments as done.
leonardchan retitled this revision from "[compiler-rt][hwasan] Add
SHADOW_OFFSET macro" to "[compiler-rt][hwasan] Add GetShadowOffset function".
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAS