| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 13cdb9b1e9ea8ce355e0ea2c1ef78e8689dda514..5ed274a7a20f4ae734db91772bcdfb7d7e64e536 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -485,7 +485,7 @@ OptimizingCompiler::Status OptimizingCompiler::GenerateAndInstallCode() {
|
| DisallowDeferredHandleDereference no_deferred_handle_deref;
|
| Handle<Code> optimized_code = chunk_->Codegen();
|
| if (optimized_code.is_null()) {
|
| - if (info()->bailout_reason() != kNoReason) {
|
| + if (info()->bailout_reason() == kNoReason) {
|
| info()->set_bailout_reason(kCodeGenerationFailed);
|
| }
|
| return AbortOptimization();
|
|
|