[llvm] r272767 - Speculative buildbot fix.
Sean Silva via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 15 02:00:33 PDT 2016
Author: silvas
Date: Wed Jun 15 04:00:33 2016
New Revision: 272767
URL: http://llvm.org/viewvc/llvm-project?rev=272767&view=rev
Log:
Speculative buildbot fix.
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) {
^
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=272767&r1=272766&r2=272767&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Wed Jun 15 04:00:33 2016
@@ -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
More information about the llvm-commits
mailing list