[clang] [CIR] Match OGCG noalias and memory effects on operator new (PR #221818)
David Rivera via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 25 06:42:02 PDT 2026
================
@@ -457,6 +457,18 @@ void convertSideEffectForCall(mlir::Operation *callOp, bool isNothrow,
noUnwind = true;
willReturn = true;
break;
+
+ case cir::SideEffect::InaccessibleOrErrno:
+ memoryEffect = mlir::LLVM::MemoryEffectsAttr::get(
+ callOp->getContext(), /*other=*/ModRefInfo::NoModRef,
+ /*argMem=*/ModRefInfo::NoModRef,
+ /*inaccessibleMem=*/ModRefInfo::ModRef,
+ /*errnoMem=*/ModRefInfo::Mod,
----------------
RiverDave wrote:
This was partly resolved by: https://github.com/llvm/llvm-project/pull/223890
https://github.com/llvm/llvm-project/pull/221818
More information about the cfe-commits
mailing list