Exclude templated variables from inference target eligibility. We currently crash when trying to collect evidence from their declarations. PiperOrigin-RevId: 645066362 Change-Id: I21445ea057ba1c8bcf11e0d92063695af82547c7
diff --git a/bazel/llvm.bzl b/bazel/llvm.bzl index 67fe514..b6c2c34 100644 --- a/bazel/llvm.bzl +++ b/bazel/llvm.bzl
@@ -53,7 +53,7 @@ executable = False, ) -LLVM_COMMIT_SHA = "e83adfe59632d2e2f8ff26db33087ba7fb754485" +LLVM_COMMIT_SHA = "e5b0c210cc4cdaae7075ad2d4aa1efe4eb4cb0c5" def llvm_loader_repository_dependencies(): # This *declares* the dependency, but it won't actually be *downloaded* unless it's used.
diff --git a/nullability/inference/inferable.cc b/nullability/inference/inferable.cc index a9ac46e..a7beaab 100644 --- a/nullability/inference/inferable.cc +++ b/nullability/inference/inferable.cc
@@ -76,6 +76,7 @@ !Var->isStaticLocal() && // See comments above regarding dependent contexts and templates. !Var->getDeclContext()->isDependentContext() && + !Var->isTemplated() && !isa<ClassTemplateSpecializationDecl>(Var->getDeclContext()); } return false;