From a5ae8baff62209567eec4cc1e8a621cd36292cce Mon Sep 17 00:00:00 2001 From: "Tung D. Le" Date: Fri, 15 Nov 2024 23:50:33 +0900 Subject: [PATCH] Fix a wrong function call (#3012) Signed-off-by: Tung D. Le --- src/Conversion/KrnlToLLVM/ConvertKrnlToLLVM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Conversion/KrnlToLLVM/ConvertKrnlToLLVM.cpp b/src/Conversion/KrnlToLLVM/ConvertKrnlToLLVM.cpp index 3f69e8be9d..23555c4b46 100644 --- a/src/Conversion/KrnlToLLVM/ConvertKrnlToLLVM.cpp +++ b/src/Conversion/KrnlToLLVM/ConvertKrnlToLLVM.cpp @@ -569,7 +569,7 @@ bool extractConstantsToFile(ModuleOp &module, std::string filepath, OpBuilder::InsertionGuard guard(b); b.setInsertionPointToStart(module.getBody()); std::string fname = llvm::sys::path::filename(filepath).str() + '\0'; - fname = (isZOS(module)) ? krnl::e2a_s(fname) : fname; + fname = (isZOS(module)) ? krnl::a2e_s(fname) : fname; mlir::StringAttr valueAttr = mlir::StringAttr::get(context, fname); create.llvm.globalOp(LLVM::LLVMArrayType::get(llvmI8Ty, fname.size()), /*isConstant=*/true, LLVM::Linkage::Internal,