================
@@ -2297,18 +2297,19 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool 
UseGlobal,
   // C++1y [expr.new]p6: The expression [...] is implicitly converted to
   //   std::size_t.
   std::optional<uint64_t> KnownArraySize;
-  if (ArraySize && *ArraySize && !(*ArraySize)->isTypeDependent()) {
+  if (ArraySize.isExprNotTypeDependent()) {
----------------
ojhunt wrote:

this and the follow on are essentially the only actual code changes in the pr, 
where we've replaced `(ArraySize && *ArraySize && !(*ArraySize)` with a very 
large class wrapping a pile of behavior to make it compatible with existing 
code.

https://github.com/llvm/llvm-project/pull/186617
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to