Skip to content

Commit 4d3a1b5

Browse files
authored
Update ExprCXX.cpp
1 parent c2daca0 commit 4d3a1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ExprCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ CXXRewrittenBinaryOperator::getDecomposedForm() const {
111111
return Result;
112112

113113
// Otherwise, we expect a <=> to now be on the LHS.
114-
E = Result.LHS->IgnoreImplicitAsWritten();
114+
E = Result.LHS->IgnoreUnlessSpelledInSource();
115115
if (auto *BO = dyn_cast<BinaryOperator>(E)) {
116116
assert(BO->getOpcode() == BO_Cmp);
117117
Result.LHS = BO->getLHS();

0 commit comments

Comments
 (0)