[clang] [Clang] Fix dependency computation for pack indexing expression (PR #91933)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Mon May 13 02:04:29 PDT 2024


================
@@ -376,6 +376,9 @@ ExprDependence clang::computeDependence(PackExpansionExpr *E) {
 
 ExprDependence clang::computeDependence(PackIndexingExpr *E) {
   ExprDependence D = E->getIndexExpr()->getDependence();
+  if (D & ExprDependence::Value)
+    D |= ExprDependence::TypeInstantiation;
----------------
zyn0217 wrote:

Probably `E->getPackIdExpression()->getDependence() & ExprDependence::TypeInstantiation`?

https://github.com/llvm/llvm-project/pull/91933


More information about the cfe-commits mailing list