]> granicus.if.org Git - llvm/commitdiff
Speculative buildbot fix.
authorSean Silva <chisophugis@gmail.com>
Wed, 15 Jun 2016 09:00:33 +0000 (09:00 +0000)
committerSean Silva <chisophugis@gmail.com>
Wed, 15 Jun 2016 09:00:33 +0000 (09:00 +0000)
This wasn't failing for me with clang as the compiler. I think GCC may
disagree with clang about whether a friend declaration introduces a
declaration in the enclosing namespace (or something).

Example error:

/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:950:77: error: ‘llvm::raw_ostream& llvm::slpvectorizer::operator<<(llvm::raw_ostream&, const llvm::slpvectorizer::BoUpSLP::ScheduleData&)’ should have been declared inside ‘llvm::slpvectorizer’
                                              const BoUpSLP::ScheduleData &SD) {
                                                                             ^

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272767 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index d58017474d4d1f0ace5398cbee36c4b34598cd66..a19ebfbc87cc7461e524d2e1cbe8950b94003623 100644 (file)
@@ -942,6 +942,11 @@ private:
   /// can legally be represented.
   MapVector<Value *, uint64_t> MinBWs;
 };
+
+#ifndef NDEBUG
+raw_ostream &operator<<(raw_ostream &os, const BoUpSLP::ScheduleData &SD);
+#endif
+
 } // end namespace llvm
 } // end namespace slpvectorizer