[clang] [clang] The ms-extension __noop should return zero in a constexpr context. (PR #106849)

via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 1 01:08:30 PDT 2024


================
@@ -12720,8 +12720,8 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E,
   }
 
   case Builtin::BI__noop:
-  // __noop always evaluates successfully
-    return true;
+    // __noop always evaluates successfully
+    return ZeroInitialization(E);
----------------
c8ef wrote:

Done.

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


More information about the cfe-commits mailing list