diff options
| author | 2015-05-11 13:18:05 +0000 | |
|---|---|---|
| committer | 2015-05-11 13:18:06 +0000 | |
| commit | 0e4c27e555d854f00185603138a6434358d07757 (patch) | |
| tree | 39d69de5d812826c4065d0acd38a58cd983f21f0 /compiler/optimizing/graph_checker.cc | |
| parent | cdeb0b5fede4c06488f43a212591e661d946bc78 (diff) | |
| parent | 0a23d74dc2751440822960eab218be4cb8843647 (diff) | |
Merge "Add a parent environment to HEnvironment."
Diffstat (limited to 'compiler/optimizing/graph_checker.cc')
| -rw-r--r-- | compiler/optimizing/graph_checker.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/optimizing/graph_checker.cc b/compiler/optimizing/graph_checker.cc index bb27a94702..fd28f0b83f 100644 --- a/compiler/optimizing/graph_checker.cc +++ b/compiler/optimizing/graph_checker.cc @@ -386,8 +386,9 @@ void SSAChecker::VisitInstruction(HInstruction* instruction) { // Ensure an instruction having an environment is dominated by the // instructions contained in the environment. - HEnvironment* environment = instruction->GetEnvironment(); - if (environment != nullptr) { + for (HEnvironment* environment = instruction->GetEnvironment(); + environment != nullptr; + environment = environment->GetParent()) { for (size_t i = 0, e = environment->Size(); i < e; ++i) { HInstruction* env_instruction = environment->GetInstructionAt(i); if (env_instruction != nullptr |