diff options
author | 2015-03-10 18:07:54 +0000 | |
---|---|---|
committer | 2015-03-10 18:07:54 +0000 | |
commit | 48e702fe11458b334e6abcc8f562729ccb5b27dd (patch) | |
tree | eed2c65d5a0fd7d019a156b54b19e84fb535d993 /compiler/optimizing/graph_checker.cc | |
parent | 39d9fe2eb3552a002c53ed41701c6faffe3cd75a (diff) | |
parent | e0fe7ae36180863e45cbb9d1e6e9c30b1b1a949c (diff) |
Merge "Make the SSA builder honor the debuggable flag."
Diffstat (limited to 'compiler/optimizing/graph_checker.cc')
-rw-r--r-- | compiler/optimizing/graph_checker.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/optimizing/graph_checker.cc b/compiler/optimizing/graph_checker.cc index a7f1f74e27..76b9f4fe7e 100644 --- a/compiler/optimizing/graph_checker.cc +++ b/compiler/optimizing/graph_checker.cc @@ -362,6 +362,12 @@ void SSAChecker::VisitPhi(HPhi* phi) { Primitive::PrettyDescriptor(phi->GetType()))); } } + if (phi->GetType() != HPhi::ToPhiType(phi->GetType())) { + AddError(StringPrintf("Phi %d in block %d does not have an expected phi type: %s", + phi->GetId(), + phi->GetBlock()->GetBlockId(), + Primitive::PrettyDescriptor(phi->GetType()))); + } } void SSAChecker::VisitIf(HIf* instruction) { |