summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-01-23 19:01:25 +0000
committerRui Ueyama <ruiu@google.com>2014-01-23 19:01:25 +0000
commit55fb8ce3791c5dd63c17c458d8dba38088cddbdf (patch)
treec5e6319fbbc9f7736e7fdc211e2e973d22b69565
parenta64353e5bd5ce18aac69abfb0c1ece10b325ea18 (diff)
downloadbcm5719-llvm-55fb8ce3791c5dd63c17c458d8dba38088cddbdf.tar.gz
bcm5719-llvm-55fb8ce3791c5dd63c17c458d8dba38088cddbdf.zip
Suppress an annoying "unused variable" warning caused by bug 17897.
Clang says that "flow" is unused when building LLD. This patch suppresses it. Differential Revision: http://llvm-reviews.chandlerc.com/D2573 llvm-svn: 199922
-rw-r--r--llvm/include/llvm/Support/YAMLTraits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/YAMLTraits.h b/llvm/include/llvm/Support/YAMLTraits.h
index 1716a9d36e8..89890e6ee3a 100644
--- a/llvm/include/llvm/Support/YAMLTraits.h
+++ b/llvm/include/llvm/Support/YAMLTraits.h
@@ -1123,6 +1123,7 @@ operator<<(Output &yout, T &seq) {
return seq.size(); \
} \
static _type& element(IO &io, std::vector<_type> &seq, size_t index) {\
+ (void)flow; /* Remove this workaround after PR17897 is fixed */ \
if ( index >= seq.size() ) \
seq.resize(index+1); \
return seq[index]; \
OpenPOWER on IntegriCloud