aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Demangle/RustDemangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Demangle/RustDemangle.cpp')
-rw-r--r--llvm/lib/Demangle/RustDemangle.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Demangle/RustDemangle.cpp b/llvm/lib/Demangle/RustDemangle.cpp
index 9513a00..582cdbc 100644
--- a/llvm/lib/Demangle/RustDemangle.cpp
+++ b/llvm/lib/Demangle/RustDemangle.cpp
@@ -113,7 +113,10 @@ bool Demangler::demangle(StringView Mangled) {
demanglePath(rust_demangle::InType::No);
- // FIXME parse optional <instantiating-crate>.
+ if (Position != Input.size()) {
+ SwapAndRestore<bool> SavePrint(Print, false);
+ demanglePath(InType::No);
+ }
if (Position != Input.size())
Error = true;