Skip to content

Commit

Permalink
Return execution failed status if executeInit fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Yves Le Maout committed Sep 20, 2017
1 parent 183886e commit 2bdd2ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Interpreter/IncrementalExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ IncrementalExecutor::runStaticInitializersOnce(const Transaction& T) {
// Execute the ctor/dtor function!
if (llvm::Function *F = llvm::dyn_cast<llvm::Function>(FP)) {
const llvm::StringRef fName = F->getName();
executeInit(fName);
const IncrementalExecutor::ExecutionResult res = executeInit(fName);
if (res != kExeSuccess) {
return res;
}
/*
initFuncs.push_back(F);
if (fName.startswith("_GLOBAL__sub_I_")) {
Expand Down

0 comments on commit 2bdd2ec

Please sign in to comment.