[llvm] r347249 - Add missing stream operator for Polynomial class to fix debug builds.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 19 10:57:49 PST 2018


Author: rksimon
Date: Mon Nov 19 10:57:49 2018
New Revision: 347249

URL: http://llvm.org/viewvc/llvm-project?rev=347249&view=rev
Log:
Add missing stream operator for Polynomial class to fix debug builds.

Modified:
    llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp

Modified: llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp?rev=347249&r1=347248&r2=347249&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp (original)
+++ llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp Mon Nov 19 10:57:49 2018
@@ -619,6 +619,13 @@ private:
   }
 };
 
+#ifndef NDEBUG
+static raw_ostream &operator<<(raw_ostream &OS, const Polynomial &S) {
+  S.print(OS);
+  return OS;
+}
+#endif
+
 /// VectorInfo stores abstract the following information for each vector
 /// element:
 ///




More information about the llvm-commits mailing list