diff options
Diffstat (limited to 'lib/AsmParser/LLParser.cpp')
-rw-r--r-- | lib/AsmParser/LLParser.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 840f764d3a..f444206852 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -28,9 +28,10 @@ using namespace llvm; static std::string getTypeString(Type *T) { - string_ostream Result; - Result << *T; - return Result.str(); + std::string Result; + raw_string_ostream Tmp(Result); + Tmp << *T; + return Tmp.str(); } /// Run: module ::= toplevelentity* |