diff options
| author | Rui Ueyama <ruiu@google.com> | 2014-01-23 19:01:25 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2014-01-23 19:01:25 +0000 |
| commit | 55fb8ce3791c5dd63c17c458d8dba38088cddbdf (patch) | |
| tree | c5e6319fbbc9f7736e7fdc211e2e973d22b69565 | |
| parent | a64353e5bd5ce18aac69abfb0c1ece10b325ea18 (diff) | |
| download | bcm5719-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.h | 1 |
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]; \ |

