X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTransforms%2FInstrumentation%2FMemorySanitizer.cpp;h=4ca03238071f11a8fd330f99fe2edad9a3dd8439;hp=bb88bc00badb8bd47b37c00e31318a1d38f720a0;hb=8dd8d5c2b2ad0f9dd1ca01c0a7d8ebac57b8537d;hpb=eca517deaa890b1658ed0452704f398ce80e47b8 diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp index bb88bc00bad..4ca03238071 100644 --- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -2424,7 +2424,8 @@ struct MemorySanitizerVisitor : public InstVisitor { 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.