diff options
Diffstat (limited to 'lib/CodeGen/CodeGenTBAA.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenTBAA.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenTBAA.cpp b/lib/CodeGen/CodeGenTBAA.cpp index b231e9e140..3f2c6cabf2 100644 --- a/lib/CodeGen/CodeGenTBAA.cpp +++ b/lib/CodeGen/CodeGenTBAA.cpp @@ -169,7 +169,9 @@ CodeGenTBAA::getTBAAInfo(QualType QTy) { // 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()); } |