summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Demangle/MicrosoftDemangle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Demangle/MicrosoftDemangle.cpp b/llvm/lib/Demangle/MicrosoftDemangle.cpp
index 0aec01eb600..76f64c8d6be 100644
--- a/llvm/lib/Demangle/MicrosoftDemangle.cpp
+++ b/llvm/lib/Demangle/MicrosoftDemangle.cpp
@@ -2081,7 +2081,7 @@ void Demangler::dumpBackReferences() {
Type::outputPre(OS, *T, *this);
Type::outputPost(OS, *T, *this);
- std::printf(" [%d] - %*s\n", (int)I, (int)OS.getCurrentPosition(),
+ std::printf(" [%d] - %.*s\n", (int)I, (int)OS.getCurrentPosition(),
OS.getBuffer());
}
std::free(OS.getBuffer());
@@ -2090,7 +2090,7 @@ void Demangler::dumpBackReferences() {
std::printf("\n");
std::printf("%d name backreferences\n", (int)BackRefCount);
for (size_t I = 0; I < BackRefCount; ++I) {
- std::printf(" [%d] - %*s\n", (int)I, (int)BackReferences[I].size(),
+ std::printf(" [%d] - %.*s\n", (int)I, (int)BackReferences[I].size(),
BackReferences[I].begin());
}
if (BackRefCount > 0)
OpenPOWER on IntegriCloud