[lld] [llvm] [polly] [IR] Remove support for icmp and fcmp constant expressions (PR #93038)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 3 10:33:35 PDT 2024
================
@@ -2437,35 +2421,13 @@ Constant *ConstantExpr::getAlignOf(Type* Ty) {
// alignof is implemented as: (i64) gep ({i1,Ty}*)null, 0, 1
// Note that a non-inbounds gep is used, as null isn't within any object.
Type *AligningTy = StructType::get(Type::getInt1Ty(Ty->getContext()), Ty);
- Constant *NullPtr = Constant::getNullValue(PointerType::getUnqual(AligningTy->getContext()));
+ Constant *NullPtr =
+ Constant::getNullValue(PointerType::getUnqual(AligningTy->getContext()));
Constant *Zero = ConstantInt::get(Type::getInt64Ty(Ty->getContext()), 0);
Constant *One = ConstantInt::get(Type::getInt32Ty(Ty->getContext()), 1);
- Constant *Indices[2] = { Zero, One };
+ Constant *Indices[2] = {Zero, One};
----------------
preames wrote:
nit: looks like clang-format went a bit out of scope of your actual change, but not a big deal.
https://github.com/llvm/llvm-project/pull/93038
More information about the llvm-commits
mailing list