[Mlir-commits] [mlir] [mlir] Fix conflict of user defined reserved functions with internal prototypes (PR #123378)
Christian Ulmann
llvmlistbot at llvm.org
Fri Jan 24 01:58:26 PST 2025
================
@@ -146,11 +151,13 @@ Value AllocationOpLLVMLowering::allocateBufferAutoAlign(
sizeBytes = createAligned(rewriter, loc, sizeBytes, allocAlignment);
Type elementPtrType = this->getElementPtrType(memRefType);
- LLVM::LLVMFuncOp allocFuncOp = getAlignedAllocFn(
+ FailureOr<LLVM::LLVMFuncOp> allocFuncOp = getAlignedAllocFn(
getTypeConverter(), op->getParentWithTrait<OpTrait::SymbolTable>(),
getIndexType());
+ if (failed(allocFuncOp))
+ return Value();
----------------
Dinistro wrote:
As above
https://github.com/llvm/llvm-project/pull/123378
More information about the Mlir-commits
mailing list