[clang] [clang][ExprConst] allow single element access of vector object to be constant expression (PR #101126)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 30 22:09:09 PDT 2024
================
@@ -442,6 +446,16 @@ namespace {
MostDerivedArraySize = 2;
MostDerivedPathLength = Entries.size();
}
+
+ void addVectorElementUnchecked(QualType EltTy, uint64_t Size,
+ uint64_t Idx) {
+ Entries.push_back(PathEntry::ArrayIndex(Idx));
----------------
shafik wrote:
@sethp had a comment in the previous PR that is not address here: https://github.com/llvm/llvm-project/pull/72607#issuecomment-2175994595
https://github.com/llvm/llvm-project/pull/101126
More information about the cfe-commits
mailing list