Skip to content

Commit d039da1

Browse files
author
Nathan Hawes
committed
Remove redundant .getPointer() in printParameterList
1 parent 528f38a commit d039da1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2461,7 +2461,7 @@ void PrintAST::printParameterList(ParameterList *PL, Type paramListTy,
24612461
bool isCurried,
24622462
std::function<bool()> isAPINameByDefault) {
24632463
SmallVector<ParameterTypeFlags, 4> paramFlags;
2464-
if (paramListTy && !paramListTy.getPointer()->hasError()) {
2464+
if (paramListTy && !paramListTy->hasError()) {
24652465
if (auto parenTy = dyn_cast<ParenType>(paramListTy.getPointer())) {
24662466
paramFlags.push_back(parenTy->getParameterFlags());
24672467
} else if (auto tupleTy = paramListTy->getAs<TupleType>()) {

0 commit comments

Comments
 (0)