We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2daca0 commit 4d3a1b5Copy full SHA for 4d3a1b5
clang/lib/AST/ExprCXX.cpp
@@ -111,7 +111,7 @@ CXXRewrittenBinaryOperator::getDecomposedForm() const {
111
return Result;
112
113
// Otherwise, we expect a <=> to now be on the LHS.
114
- E = Result.LHS->IgnoreImplicitAsWritten();
+ E = Result.LHS->IgnoreUnlessSpelledInSource();
115
if (auto *BO = dyn_cast<BinaryOperator>(E)) {
116
assert(BO->getOpcode() == BO_Cmp);
117
Result.LHS = BO->getLHS();
0 commit comments