[clang] [CIR][NFC] Upstream LValueBaseInfo handling (PR #134928)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 8 14:04:13 PDT 2025


================
@@ -27,7 +27,8 @@ using namespace cir;
 
 /// Given an expression of pointer type, try to
 /// derive a more accurate bound on the alignment of the pointer.
-Address CIRGenFunction::emitPointerWithAlignment(const Expr *expr) {
+Address CIRGenFunction::emitPointerWithAlignment(const Expr *expr,
+                                                 LValueBaseInfo *baseInfo) {
----------------
AmrDeveloper wrote:

We have a new warning from the previous PR related to unused variable, should we quickly handle it here?

```
if (auto const *ece = dyn_cast<ExplicitCastExpr>(ce)) { <----- ece
   cgm.errorNYI(expr->getSourceRange(),
                   "emitPointerWithAlignment: explicit cast");
   return Address::invalid();
}
```

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


More information about the cfe-commits mailing list