[Lldb-commits] [PATCH] D111509: [clang] use getCommonSugar in an assortment of places
Matheus Izvekov via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 13 06:42:13 PDT 2022
mizvekov marked an inline comment as not done.
mizvekov added a subscriber: davrec.
mizvekov added inline comments.
================
Comment at: clang/lib/Sema/SemaExpr.cpp:1091-1150
+ QualType fpTy = ComplexTy->castAs<ComplexType>()->getElementType();
IntExpr = S.ImpCastExprToType(IntExpr.get(), fpTy, CK_IntegralToFloating);
IntExpr = S.ImpCastExprToType(IntExpr.get(), ComplexTy,
CK_FloatingRealToComplex);
} else {
assert(IntTy->isComplexIntegerType());
IntExpr = S.ImpCastExprToType(IntExpr.get(), ComplexTy,
----------------
mizvekov wrote:
> @shafik let's continue revision of D133522 in this patch, since that one was a quick fix that I attempted in order to avoid reverting it. But now that it was reverted, I will abandon the other one.
>
> I have highlighted with this comment the areas affected by D133522 so we can continue here.
>
> But now I have refactored the whole thing to be simpler / more readable.
Also @davrec if you can please take a look at this, this is the only part of the patch that changed, in order to fix the reason why it was reverted.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111509/new/
https://reviews.llvm.org/D111509
More information about the lldb-commits
mailing list