Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 24, 2024
1 parent c4e8e32 commit 0534452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enzyme_ad/jax/Passes/LowerKernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ void *CompileKernel(SymbolTableCollection &symbolTable, mlir::Location loc,
std::string value = "found pointer func = %p\n";
auto type = LLVM::LLVMArrayType::get(
mlir::IntegerType::get(builder.getContext(), 8), value.size() + 1);
printStrMod = builder.create<LLVM::GlobalOp>(
printStrFunc = builder.create<LLVM::GlobalOp>(
loc, type, /*isConstant=*/true, LLVM::Linkage::Internal, "strfunc",
builder.getStringAttr(value + '\0'));
}
Expand Down

0 comments on commit 0534452

Please sign in to comment.