[clang] [Clang] prevent assertion failure when converting vectors to int/float with invalid expressions (PR #105727)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 27 09:00:27 PDT 2024
================
@@ -9888,6 +9888,9 @@ static ExprResult convertVector(Expr *E, QualType ElementType, Sema &S) {
/// IntTy without losing precision.
static bool canConvertIntToOtherIntTy(Sema &S, ExprResult *Int,
QualType OtherIntTy) {
+ if (Int->get()->isValueDependent())
+ return false;
----------------
a-tarasyuk wrote:
@cor3ntin Thanks for the review. I've changed to use the `containsError` helper.
https://github.com/llvm/llvm-project/pull/105727
More information about the cfe-commits
mailing list