[libcxx-commits] [libcxx] [libc++] Remove __libcpp_allocate (PR #220981)

Timm Baeder via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 11 04:56:57 PDT 2026


tbaederr wrote:

Is the actual reported alignment relevant? :thinking: 
i.e. does
```diff
diff --git i/clang/lib/AST/ExprConstant.cpp w/clang/lib/AST/ExprConstant.cpp
index 1286c77ad1c6..80c2be58ce1e 100644
--- i/clang/lib/AST/ExprConstant.cpp
+++ w/clang/lib/AST/ExprConstant.cpp
@@ -10569,7 +10569,7 @@ static CharUnits getBaseAlignment(EvalInfo &Info, const LValue &Value) {
     return Info.Ctx.getDeclAlign(VD);
   if (const auto *E = Value.Base.dyn_cast<const Expr *>())
     return GetAlignOfExpr(Info.Ctx, E, UETT_AlignOf);
-  return GetAlignOfType(Info.Ctx, Value.Base.getTypeInfoType(), UETT_AlignOf);
+  return GetAlignOfType(Info.Ctx, Value.Base.getType(), UETT_AlignOf);
 }

 /// Evaluate the value of the alignment argument to __builtin_align_{up,down},
```
fix it in the meantime?

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


More information about the libcxx-commits mailing list