[clang] Fix a crash in constant evaluation of ExtVectorElementExprs (PR #136771)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 23 06:20:55 PDT 2025
================
@@ -9197,7 +9197,10 @@ bool LValueExprEvaluator::VisitExtVectorElementExpr(
if (Success) {
Result.setFrom(Info.Ctx, Val);
- const auto *VT = E->getBase()->getType()->castAs<VectorType>();
+ QualType BaseType = E->getBase()->getType();
+ if (E->isArrow())
----------------
erichkeane wrote:
Ah, huh, I didn't realize that about `MemberExpr`, I guess this IS consistent. Odd choice that we made...
https://github.com/llvm/llvm-project/pull/136771
More information about the cfe-commits
mailing list