[clang] [SemaCXX] Make __builtin_addressof more like std::addressof (PR #78035)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 16 06:50:36 PST 2024


================
@@ -242,7 +242,7 @@ static bool SemaBuiltinAddressof(Sema &S, CallExpr *TheCall) {
     return true;
 
   ExprResult Arg(TheCall->getArg(0));
-  QualType ResultType = S.CheckAddressOfOperand(Arg, TheCall->getBeginLoc());
+  QualType ResultType = S.CheckAddressOfOperand(Arg, TheCall->getBeginLoc(), true);
----------------
erichkeane wrote:

We require a `/*paramName=*/` comment on bool literals.

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


More information about the cfe-commits mailing list