This revision was automatically updated to reflect the committed changes.
Closed by commit rL306181: [ubsan] Disable the object size check at -O0
(authored by vedantk).
Changed prior to commit:
https://reviews.llvm.org/D34563?vs=103778&id=103796#toc
Repository:
rL LLVM
https://reviews.llvm.
v...@apple.com writes:
> Good point, it makes sense to hand users a warning when they explicitly enable
> -fsanitize=object-size at -O0. I've added in the diagnostic. PTAL.
LGTM.
> diff --git a/include/clang/Basic/DiagnosticDriverKinds.td
> b/include/clang/Basic/DiagnosticDriverKinds.td
> index
vsk updated this revision to Diff 103778.
vsk added a comment.
Add a diagnostic for users who explicitly turn the object-size check on at -O0,
and tighten up the test a bit.
https://reviews.llvm.org/D34563
Files:
include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/SanitizerArgs.cpp
t
Good point, it makes sense to hand users a warning when they explicitly enable -fsanitize=object-size at -O0. I've added in the diagnostic. PTAL.
disable-object-size-check-O0.diff
Description: Binary data
vedantOn Jun 23, 2017, at 1:05 PM, Justin Bogner wrote:+++ test/Driv
Vedant Kumar via Phabricator writes:
> vsk created this revision.
>
> This is motivated by the thread:
> [cfe-dev] Disabling ubsan's object size check at -O0
>
> I think the driver is the best place to disable a sanitizer check at
> particular optimization levels. Doing so in the frontend is messy
vsk created this revision.
This is motivated by the thread:
[cfe-dev] Disabling ubsan's object size check at -O0
I think the driver is the best place to disable a sanitizer check at particular
optimization levels. Doing so in the frontend is messy, and makes it really
hard to test IR generation