[clang] [clang] Implement C2y stdc_load8_* endian-aware 8-bit load functions (PR #203666)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 6 00:01:19 PDT 2026


================
@@ -10559,12 +10559,15 @@ CharUnits GetAlignOfExpr(const ASTContext &Ctx, const Expr *E,
   return GetAlignOfType(Ctx, E->getType(), ExprKind);
 }
 
-static CharUnits getBaseAlignment(EvalInfo &Info, const LValue &Value) {
-  if (const auto *VD = Value.Base.dyn_cast<const ValueDecl *>())
-    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);
+CharUnits GetBaseAlignment(const ASTContext &Ctx,
----------------
tbaederr wrote:

You changed the capitalization here. It was correct before: https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly

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


More information about the cfe-commits mailing list