[cfe-commits] [PATCH] [msan] Support -fsanitize-memory-track-origins
Alexey Samsonov
samsonov at google.com
Thu Dec 20 07:37:46 PST 2012
================
Comment at: lib/Driver/Tools.cpp:1500
@@ +1499,3 @@
+ D.Diag(diag::err_drv_argument_only_allowed_with)
+ << TOArg->getAsString(Args) << "-fsanitize=memory";
+ MsanTrackOrigins = TOArg &&
----------------
Do we want to allow "clang++ -fsanitize=address -fno-sanitize-memory-track-origins"? (this is weird, but why not). If we do, you may use Args.hasFlag instead of getLastArg
http://llvm-reviews.chandlerc.com/D224
More information about the cfe-commits
mailing list