Skip to content

Commit ec1dbf3

Browse files
committed
fix phi
1 parent 3096130 commit ec1dbf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddle/cinn/backends/llvm/simple_jit.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void SimpleJIT::AddModule(std::unique_ptr<llvm::Module> module, bool optimize) {
5252
PADDLE_ENFORCE_EQ(
5353
!llvm::verifyModule(*module, &err_stream),
5454
true,
55-
platform::errors::InvalidArgument(
55+
phi::errors::InvalidArgument(
5656
"Transformation resulted in an invalid module\n\nmodule:\n"));
5757

5858
bool debug = false;
@@ -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_, platform::errors::InvalidArgumentError("JIT creation failed."));
106+
jit_, phi::errors::InvalidArgumentError("JIT creation failed."));
107107

108108
auto proc_symbols_generator = llvm::cantFail(
109109
llvm::orc::DynamicLibrarySearchGenerator::GetForCurrentProcess(
@@ -135,7 +135,7 @@ void SimpleJIT::Link(ir::Module module, bool optimize) {
135135

136136
PADDLE_ENFORCE_EQ(!llvm::verifyModule(*m, &llvm::errs()),
137137
true,
138-
platform::errors::InvalidArgument("Invalid module found."));
138+
phi::errors::InvalidArgument("Invalid module found."));
139139

140140
AddModule(std::move(m), optimize);
141141
}

0 commit comments

Comments
 (0)