X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTransforms%2FInstrumentation%2FMemorySanitizer.cpp;h=bb88bc00badb8bd47b37c00e31318a1d38f720a0;hp=4ca03238071f11a8fd330f99fe2edad9a3dd8439;hb=255907042245b77779e3e38c5ce66901866cabe5;hpb=ce6e7c7a59e8595ea3f30d87cbad4af278cb5ef3 diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 4ca03238071..bb88bc00bad 100644 --- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -2424,8 +2424,7 @@ struct MemorySanitizerVisitor : public InstVisitor { if (PoisonStack && MS.TrackOrigins) { setOrigin(&I, getCleanOrigin()); - SmallString<2048> StackDescriptionStorage; - raw_svector_ostream StackDescription(StackDescriptionStorage); + small_string_ostream<2048> StackDescription; // 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.