]> granicus.if.org Git - clang/commit
[WebAssembly] Support VPtr sanitizer for Emscripten
authorThomas Lively <tlively@google.com>
Wed, 29 May 2019 18:31:50 +0000 (18:31 +0000)
committerThomas Lively <tlively@google.com>
Wed, 29 May 2019 18:31:50 +0000 (18:31 +0000)
commit2597182a4663fbf2797bc9782fcfc934ed159ba5
treee2930496e642fa9f98adb88762fce7b6b277ef41
parent0075a732424c32ed92aaf49704fd6368b5a60fe8
[WebAssembly] Support VPtr sanitizer for Emscripten

Summary:
After https://github.com/emscripten-core/emscripten/pull/8651, Emscripten
supports the full UBSan runtime. This includes the VPtr sanitizer.

This diff allows clang to generate code that uses the VPtr sanitizer for
Emscripten.

Patch by Guanzhong Chen

Reviewers: tlively, aheejin

Reviewed By: aheejin

Subscribers: dschuff, sbc100, jgravelle-google, sunfish, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D62559

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362004 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/WebAssembly.cpp
lib/Driver/ToolChains/WebAssembly.h
test/CodeGenCXX/wasm-sanitize-vptr.cpp [new file with mode: 0644]