For consistency, use llvm::raw_ostream in the rest of the mangle api.
llvm-svn: 125360
diff --git a/clang/lib/CodeGen/CodeGenTBAA.cpp b/clang/lib/CodeGen/CodeGenTBAA.cpp
index b231e9e..3f2c6ca 100644
--- a/clang/lib/CodeGen/CodeGenTBAA.cpp
+++ b/clang/lib/CodeGen/CodeGenTBAA.cpp
@@ -169,7 +169,9 @@
// TODO: This is using the RTTI name. Is there a better way to get
// a unique string for a type?
llvm::SmallString<256> OutName;
- MContext.mangleCXXRTTIName(QualType(ETy, 0), OutName);
+ llvm::raw_svector_ostream Out(OutName);
+ MContext.mangleCXXRTTIName(QualType(ETy, 0), Out);
+ Out.flush();
return MetadataCache[Ty] = getTBAAInfoForNamedType(OutName, getChar());
}