Skip to content

Commit c1654b4

Browse files
committed
fix error message
1 parent b4ebfe5 commit c1654b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/cinn/backends/llvm/simple_jit.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void SimpleJIT::AddModule(std::unique_ptr<llvm::Module> module, bool optimize) {
5050
}
5151
*/
5252
PADDLE_ENFORCE_EQ(
53-
!llvm::verifyModule(*module, &err_stream),
53+
!llvm::verifyModule(*module, &llvm::errs()),
5454
true,
5555
phi::errors::InvalidArgument(
5656
"Transformation resulted in an invalid module\n\nmodule:\n"));
@@ -103,7 +103,7 @@ SimpleJIT::SimpleJIT() : context_(std::make_unique<llvm::LLVMContext>()) {
103103

104104
jit_ = llvm::cantFail(llvm::orc::LLJITBuilder().create());
105105
PADDLE_ENFORCE_NOT_NULL(
106-
jit_, phi::errors::InvalidArgumentError("JIT creation failed."));
106+
jit_, phi::errors::InvalidArgument("JIT creation failed."));
107107

108108
auto proc_symbols_generator = llvm::cantFail(
109109
llvm::orc::DynamicLibrarySearchGenerator::GetForCurrentProcess(

0 commit comments

Comments
 (0)