From: Saleem Abdulrasool Date: Thu, 25 Jan 2018 19:54:31 +0000 (+0000) Subject: AST: inline a single-use variable (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcdbeda4ad4fa50bae239aa0725eb2798c11bd1f;p=clang AST: inline a single-use variable (NFC) Inline the single use variable into the only use. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323461 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/MicrosoftMangle.cpp b/lib/AST/MicrosoftMangle.cpp index 5d1073811b..81bdb6708d 100644 --- a/lib/AST/MicrosoftMangle.cpp +++ b/lib/AST/MicrosoftMangle.cpp @@ -1559,12 +1559,11 @@ MicrosoftCXXNameMangler::mangleRefQualifier(RefQualifierKind RefQualifier) { void MicrosoftCXXNameMangler::manglePointerExtQualifiers(Qualifiers Quals, QualType PointeeType) { - bool HasRestrict = Quals.hasRestrict(); if (PointersAre64Bit && (PointeeType.isNull() || !PointeeType->isFunctionType())) Out << 'E'; - if (HasRestrict) + if (Quals.hasRestrict()) Out << 'I'; if (Quals.hasUnaligned() ||