summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2014-05-29 16:19:27 +0000
committerDiego Novillo <dnovillo@google.com>2014-05-29 16:19:27 +0000
commitab22190962dce5920dbb65bbbee28ddb1cc63307 (patch)
treec8e17a03fc527446c47aafbf90d2f2e1253031d8 /lib/CodeGen/CodeGenAction.cpp
parentec0c25b912166fade30dda5fcdb3195b72db3e56 (diff)
downloadclang-ab22190962dce5920dbb65bbbee28ddb1cc63307.tar.gz
clang-ab22190962dce5920dbb65bbbee28ddb1cc63307.tar.bz2
clang-ab22190962dce5920dbb65bbbee28ddb1cc63307.tar.xz
Fix spurious remarks when -Weverything is used.
With -Weverything, the backend remarks are enabled. This was causing spurious diagnostics for remarks that we don't yet handle (cf http://reviews.llvm.org/D3683). This will stop being a problem once http://reviews.llvm.org/D3683 is committed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--lib/CodeGen/CodeGenAction.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp
index 3db1660b80..4bb3895108 100644
--- a/lib/CodeGen/CodeGenAction.cpp
+++ b/lib/CodeGen/CodeGenAction.cpp
@@ -461,6 +461,12 @@ void BackendConsumer::DiagnosticHandlerImpl(const DiagnosticInfo &DI) {
// handler. There is no generic way of emitting them.
OptimizationRemarkHandler(cast<DiagnosticInfoOptimizationRemark>(DI));
return;
+ case llvm::DK_OptimizationRemarkMissed:
+ case llvm::DK_OptimizationRemarkAnalysis:
+ // TODO: Do nothing for now. The implementation of these
+ // two remarks is still under review (http://reviews.llvm.org/D3683).
+ // Remove this once that patch lands.
+ return;
default:
// Plugin IDs are not bound to any value as they are set dynamically.
ComputeDiagRemarkID(Severity, backend_plugin, DiagID);