Revert "Introduce a string_ostream string builder facilty"
[oota-llvm.git] / lib / Transforms / Instrumentation / MemorySanitizer.cpp
index bb88bc00badb8bd47b37c00e31318a1d38f720a0..4ca03238071f11a8fd330f99fe2edad9a3dd8439 100644 (file)
@@ -2424,7 +2424,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
 
     if (PoisonStack && MS.TrackOrigins) {
       setOrigin(&I, getCleanOrigin());
-      small_string_ostream<2048> StackDescription;
+      SmallString<2048> StackDescriptionStorage;
+      raw_svector_ostream StackDescription(StackDescriptionStorage);
       // We create a string with a description of the stack allocation and
       // pass it into __msan_set_alloca_origin.
       // It will be printed by the run-time if stack-originated UMR is found.