diff options
| author | 2015-03-10 18:12:14 +0000 | |
|---|---|---|
| committer | 2015-03-10 18:12:14 +0000 | |
| commit | 454c15907f9c00b0422356d9b4fa620b1736b572 (patch) | |
| tree | 89edf2d04e44c8adaf95e9d5a3d40698025d4cc3 /compiler/optimizing/graph_checker.cc | |
| parent | 79bf9a9eece6b99ffef61670a8fa2a0a3dbfc6a8 (diff) | |
| parent | 48e702fe11458b334e6abcc8f562729ccb5b27dd (diff) | |
am 48e702fe: Merge "Make the SSA builder honor the debuggable flag."
* commit '48e702fe11458b334e6abcc8f562729ccb5b27dd':
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) { |