hokein added inline comments.

================
Comment at: clang/lib/AST/Expr.cpp:3747
     case NPC_ValueDependentIsNull:
-      if (isTypeDependent() || getType()->isIntegralType(Ctx))
+      if ((!containsErrors() && isTypeDependent()) ||
+          getType()->isIntegralType(Ctx))
----------------
sammccall wrote:
> would it be clearer to say if (containsErrors()) return NPCK_NotNull at the 
> top?
> 
> Only difference in behavior is not hitting llvm_unreachable if we have 
> NPC_NeverValueDependent... do you think we actually want that?
this is good point, I missed that. thanks!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84222/new/

https://reviews.llvm.org/D84222



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to