projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c18585e
)
Remove duplicate P->getAs<PointerType>() call. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Thu, 3 Oct 2019 15:08:20 +0000
(15:08 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Thu, 3 Oct 2019 15:08:20 +0000
(15:08 +0000)
llvm-svn: 373611
clang/lib/AST/ASTContext.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/ASTContext.cpp
b/clang/lib/AST/ASTContext.cpp
index
99fac32
..
2bde004
100644
(file)
--- a/
clang/lib/AST/ASTContext.cpp
+++ b/
clang/lib/AST/ASTContext.cpp
@@
-6851,8
+6851,8
@@
void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string &S,
}
} else if (Options.IsOutermostType()) {
QualType P = PointeeTy;
- while (P->getAs<PointerType>())
- P = P
->getAs<PointerType>()
->getPointeeType();
+ while (
auto PT =
P->getAs<PointerType>())
+ P = P
T
->getPointeeType();
if (P.isConstQualified()) {
isReadOnly = true;
S += 'r';