[cfe-commits] [PATCH] Add three new sanitizers depending on ASan.
Dmitri Gribenko
gribozavr at gmail.com
Thu Nov 29 12:33:03 PST 2012
================
Comment at: lib/CodeGen/BackendUtil.cpp:175
@@ +174,3 @@
+ static_cast<const PassManagerBuilderWrapper*>(&Builder);
+ assert(BuilderWrapper);
+ const LangOptions &LangOpts = BuilderWrapper->getLangOpts();
----------------
This can never fail, it is a static_cast.
================
Comment at: lib/CodeGen/BackendUtil.cpp:145
@@ +144,3 @@
+ const LangOptions &getLangOpts() const { return LangOpts; }
+ private:
+ const LangOptions &LangOpts;
----------------
Extra space before 'private:' and 'public:'.
http://llvm-reviews.chandlerc.com/D142
More information about the cfe-commits
mailing list