http://codereview.appspot.com/5430043/diff/1/lib/Frontend/CompilerInvocation.cpp File lib/Frontend/CompilerInvocation.cpp (right): http://codereview.appspot.com/5430043/diff/1/lib/Frontend/CompilerInvocation.cpp#newcode1809 lib/Frontend/CompilerInvocation.cpp:1809: Opts.AddressSanitizer = Args.hasArg(OPT_faddress_sanitizer); I think you'll need to do ...
13 years, 2 months ago
(2011-11-22 00:42:48 UTC)
#1
http://codereview.appspot.com/5430043/diff/1/lib/Frontend/CompilerInvocation.cpp
File lib/Frontend/CompilerInvocation.cpp (right):
http://codereview.appspot.com/5430043/diff/1/lib/Frontend/CompilerInvocation....
lib/Frontend/CompilerInvocation.cpp:1809: Opts.AddressSanitizer =
Args.hasArg(OPT_faddress_sanitizer);
I think you'll need to do more here.
We're now parsing the same argument in two places, which doesn't work cleanly
because we need to serialize in each place, and then we'll end up with two
serialized options.
I think we need to setup the CodeGenOpts from the language options, or use the
language options directly in the CodeGen layer. Essentially there should be one
parsing of this argument and one serialization of it
Issue 5430043: implement __has_feature(address_sanitizer)
Created 13 years, 2 months ago by kcc
Modified 13 years, 2 months ago
Reviewers: chandlerc
Base URL: https://llvm.org/svn/llvm-project/cfe/trunk/
Comments: 1