[clang] [CIR][NFC] Fix warnings in ClangIR code (PR #133134)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 26 11:59:53 PDT 2025
================
@@ -1251,13 +1236,12 @@ void ConvertCIRToLLVMPass::runOnOperation() {
patterns.add<CIRToLLVMStoreOpLowering>(converter, patterns.getContext(), dl);
patterns.add<CIRToLLVMGlobalOpLowering>(converter, patterns.getContext(), dl);
patterns.add<CIRToLLVMCastOpLowering>(converter, patterns.getContext(), dl);
- patterns.add<CIRToLLVMConstantOpLowering>(converter, patterns.getContext(),
- dl);
patterns.add<
// clang-format off
CIRToLLVMBinOpLowering,
CIRToLLVMBrCondOpLowering,
CIRToLLVMBrOpLowering,
+ CIRToLLVMConstantOpLowering,
----------------
andykaylor wrote:
I looked at the implementation of this one in the incubator, and I don't think the dataLayout use there is necessary. I'm not sure it's necessary anywhere, since we can get it from the module. It seems reasonable to me not to pass dataLayout to this class.
https://github.com/llvm/llvm-project/pull/133134
More information about the cfe-commits
mailing list