Skip to content

Commit

Permalink
return error/null instead of decl
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninja3047 committed Feb 29, 2024
1 parent 4034b84 commit 3f8ca7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Lifters/FunctionLifter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ llvm::Function *FunctionLifter::LiftFunction(const FunctionDecl &decl) {
// Function has no valid instructions.
auto &cfg = decl.cfg;
if (cfg.find(decl.entry_uid) == cfg.end()) {
LOG(WARNING) << "Function missing entry block " << std::hex << decl.address;
return native_func;
LOG(ERROR) << "Function missing entry block " << std::hex << decl.address;
return nullptr;
}


Expand Down

0 comments on commit 3f8ca7b

Please sign in to comment.