Skip to content

Commit

Permalink
[Demangle][Rust] Speculative fix for bot build failure
Browse files Browse the repository at this point in the history
> error: ‘InType’ is not a class, namespace, or enumeration
  • Loading branch information
tmiasko committed May 18, 2021
1 parent 4fedb3a commit 57f4088
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions llvm/lib/Demangle/RustDemangle.cpp
Expand Up @@ -110,7 +110,7 @@ bool Demangler::demangle(StringView Mangled) {
}
Input = Mangled;

demanglePath(InType::No);
demanglePath(rust_demangle::InType::No);

// FIXME parse optional <instantiating-crate>.

Expand Down Expand Up @@ -160,15 +160,15 @@ void Demangler::demanglePath(InType InType) {
print("<");
demangleType();
print(" as ");
demanglePath(InType::Yes);
demanglePath(rust_demangle::InType::Yes);
print(">");
break;
}
case 'Y': {
print("<");
demangleType();
print(" as ");
demanglePath(InType::Yes);
demanglePath(rust_demangle::InType::Yes);
print(">");
break;
}
Expand Down Expand Up @@ -211,7 +211,7 @@ void Demangler::demanglePath(InType InType) {
case 'I': {
demanglePath(InType);
// Omit "::" when in a type, where it is optional.
if (InType == InType::No)
if (InType == rust_demangle::InType::No)
print("::");
print("<");
for (size_t I = 0; !Error && !consumeIf('E'); ++I) {
Expand Down Expand Up @@ -456,7 +456,7 @@ void Demangler::demangleType() {
}
default:
Position = Start;
demanglePath(InType::Yes);
demanglePath(rust_demangle::InType::Yes);
break;
}
}
Expand Down

0 comments on commit 57f4088

Please sign in to comment.