================
@@ -15633,3 +15633,17 @@ void ASTContext::recordOffsetOfEvaluation(const 
OffsetOfExpr *E) {
   if (FieldDecl *FD = Comp.getField(); isPFPField(FD))
     PFPFieldsWithEvaluatedOffset.insert(FD);
 }
+
+bool ASTContext::maybeFoldConstexprWithCast(
+    SmallVectorImpl<PartialDiagnosticAt> &Notes) const {
+  if (Notes.size() != 1 || !getLangOpts().MSVCCompat)
----------------
shafik wrote:

I think I would prefer this split into two early exit w/ the 
`!getLangOpts().MSVCCompat` first.

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

Reply via email to