summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2018-01-25 19:54:31 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2018-01-25 19:54:31 +0000
commit26d9bdb72f864245cfaaa005646bec03289a1a6d (patch)
treefbb059f39c3d3d4100e0624cd0b4987c4e033b3a /clang/lib/AST/MicrosoftMangle.cpp
parentc73cec84c99e5a63dca961fef67998a677c53a3c (diff)
downloadbcm5719-llvm-26d9bdb72f864245cfaaa005646bec03289a1a6d.tar.gz
bcm5719-llvm-26d9bdb72f864245cfaaa005646bec03289a1a6d.zip
AST: inline a single-use variable (NFC)
Inline the single use variable into the only use. NFC. llvm-svn: 323461
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r--clang/lib/AST/MicrosoftMangle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index 5d1073811b1..81bdb6708d6 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/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() ||
OpenPOWER on IntegriCloud