Fix mistake in r190442.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 10 Sep 2013 23:09:24 +0000 (23:09 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 10 Sep 2013 23:09:24 +0000 (23:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190446 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/CodeGenPrepare.cpp

index bd02a45f2624f72c4e861a3a97387dcf5fadf38a..9c5633b4e7f924fc8d627b91f80183bfc79d5219 100644 (file)
@@ -840,6 +840,13 @@ struct ExtAddrMode : public TargetLowering::AddrMode {
   }
 };
 
+#ifndef NDEBUG
+static inline raw_ostream &operator<<(raw_ostream &OS, const ExtAddrMode &AM) {
+  AM.print(OS);
+  return OS;
+}
+#endif
+
 void ExtAddrMode::print(raw_ostream &OS) const {
   bool NeedPlus = false;
   OS << "[";