Initial commit: added new command line option for use-after-dtor.
Diff Detail
Event Timeline
I suspect this does not do anything because you need to pass the flag from the driver to the compiler.
Compare with this change:
http://llvm.org/viewvc/llvm-project?view=revision&revision=219417
Please add a test, similar to r219417.
include/clang/Driver/Options.td | ||
---|---|---|
558 | Move it below fno_sanitize_memory_track_origins | |
include/clang/Frontend/CodeGenOptions.def | ||
115 | "2" should be "1", this is just a bool flag | |
lib/CodeGen/CGClass.cpp | ||
1461 ↗ | (On Diff #29413) | EmitDtorPoisoning |
test/Driver/fsanitize.c | ||
---|---|---|
126 | This test is passing because this CHECK matches the following output: The CHECK could be improved like this: And then it will fail because you are not passing the option to the compiler (see SanitizerArgs.cpp:569). |
Move it below fno_sanitize_memory_track_origins