Skip to content

Commit bef57e7

Browse files
committed
[macOS] fix a refactor test by adjusting for AST changes
(cherry picked from commit 17269e2)
1 parent 76a5546 commit bef57e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Tooling/Refactor/TypeUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static QualType canonicalizeStdOperatorReturnType(const Expr *E, QualType T) {
133133
} else
134134
return T;
135135
for (unsigned I = 0, E = OCE->getNumArgs(); I < E; ++I) {
136-
const Expr *Arg = OCE->getArgs()[I];
136+
const Expr *Arg = OCE->getArgs()[I]->IgnoreImpCasts();
137137
QualType T = Arg->getType();
138138
if (const auto *ET = dyn_cast<ElaboratedType>(T))
139139
T = ET->desugar();

0 commit comments

Comments
 (0)