What should be the last unnecessary <iostream>s in the library.
[oota-llvm.git] / utils / TableGen / FileParser.y.cvs
index 8e564564bdef4e6a8240bd07b491bb774319afbb..2732680d2fbfb10e274bbb074bf813c9584068af 100644 (file)
@@ -14,6 +14,7 @@
 %{
 #include "Record.h"
 #include "llvm/ADT/StringExtras.h"
+#include "llvm/Support/Streams.h"
 #include <algorithm>
 #include <cstdio>
 #define YYERROR_VERBOSE 1
@@ -124,7 +125,7 @@ static void setValue(const std::string &ValName,
     }
 
     // We should have a BitsInit type now...
-    assert(dynamic_cast<BitsInit*>(BI) != 0 || &(std::cerr << *BI) == 0);
+    assert(dynamic_cast<BitsInit*>(BI) != 0 || (cerr << *BI).stream() == 0);
     BitsInit *BInit = (BitsInit*)BI;
 
     BitsInit *NewVal = new BitsInit(CurVal->getNumBits());