[PATCH] D62559: [WebAssembly] Support VPtr sanitizer for Emscripten

Guanzhong Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 28 18:12:04 PDT 2019


quantum marked 2 inline comments as done.
quantum added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/WebAssembly.cpp:214
+  if (getTriple().isOSEmscripten()) {
+    Res |= SanitizerKind::Vptr;
+  }
----------------
aheejin wrote:
> quantum wrote:
> > aheejin wrote:
> > > Does this mean we only support `Vptr` among sanitizers [[ https://github.com/llvm/llvm-project/blob/92d706eaca6cc79501066eae4392b600008e52c1/clang/include/clang/Basic/Sanitizers.def#L76-L103 | here ]]?
> > No, by default all of UBSan except `Vptr` and `Function` are declared as supported. This adds Vptr to the list as it's supported on Emscripten.
> I see. By the way where do we say we support the undefined sanitizer group?
The base `ToolChain` class says it's supported on all platforms.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D62559





More information about the cfe-commits mailing list