r323461 - AST: inline a single-use variable (NFC)
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 25 11:54:31 PST 2018
Author: compnerd
Date: Thu Jan 25 11:54:31 2018
New Revision: 323461
URL: http://llvm.org/viewvc/llvm-project?rev=323461&view=rev
Log:
AST: inline a single-use variable (NFC)
Inline the single use variable into the only use. NFC.
Modified:
cfe/trunk/lib/AST/MicrosoftMangle.cpp
Modified: cfe/trunk/lib/AST/MicrosoftMangle.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/MicrosoftMangle.cpp?rev=323461&r1=323460&r2=323461&view=diff
==============================================================================
--- cfe/trunk/lib/AST/MicrosoftMangle.cpp (original)
+++ cfe/trunk/lib/AST/MicrosoftMangle.cpp Thu Jan 25 11:54:31 2018
@@ -1559,12 +1559,11 @@ MicrosoftCXXNameMangler::mangleRefQualif
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() ||
More information about the cfe-commits
mailing list