diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-10-23 23:11:23 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-10-23 23:11:23 +0000 |
commit | dc7b641574a733624489bd87fc7061771edf2113 (patch) | |
tree | 9610f52681156222f6b4f2501bbd104f229ca47c /lib/Frontend/Warnings.cpp | |
parent | 6a6bb2810cc8478730002c950f9261f6cb5f6143 (diff) |
Use a .def file for most of the diagnostic options.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/Warnings.cpp')
-rw-r--r-- | lib/Frontend/Warnings.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Frontend/Warnings.cpp b/lib/Frontend/Warnings.cpp index a60fe95aec..f789b7f305 100644 --- a/lib/Frontend/Warnings.cpp +++ b/lib/Frontend/Warnings.cpp @@ -51,8 +51,7 @@ void clang::ProcessWarningOptions(DiagnosticsEngine &Diags, const DiagnosticOptions &Opts) { Diags.setSuppressSystemWarnings(true); // Default to -Wno-system-headers Diags.setIgnoreAllWarnings(Opts.IgnoreWarnings); - Diags.setShowOverloads( - static_cast<DiagnosticsEngine::OverloadsShown>(Opts.ShowOverloads)); + Diags.setShowOverloads(Opts.getShowOverloads()); Diags.setElideType(Opts.ElideType); Diags.setPrintTemplateTree(Opts.ShowTemplateTree); |