diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Demangle/MicrosoftDemangle.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Demangle/MicrosoftDemangle.cpp b/llvm/lib/Demangle/MicrosoftDemangle.cpp index 1bf94ff8469..86a95892edb 100644 --- a/llvm/lib/Demangle/MicrosoftDemangle.cpp +++ b/llvm/lib/Demangle/MicrosoftDemangle.cpp @@ -483,6 +483,11 @@ void Type::outputPre(OutputStream &OS, Type &Ty) { outputSpaceIfNecessary(OS); OS << "volatile"; } + + if (Ty.Quals & Q_Restrict) { + outputSpaceIfNecessary(OS); + OS << "__restrict"; + } } // Write the "second half" of a given type. @@ -574,8 +579,6 @@ void PointerType::outputPre(OutputStream &OS) { // FIXME: We should output this, but it requires updating lots of tests. // if (Ty.Quals & Q_Pointer64) // OS << " __ptr64"; - if (Quals & Q_Restrict) - OS << " __restrict"; } void PointerType::outputPost(OutputStream &OS) { |