diff options
author | 2015-02-18 14:48:53 +0000 | |
---|---|---|
committer | 2015-02-19 14:01:18 +0000 | |
commit | d6138ef1ea13d07ae555542f8898b30d89e9ac9a (patch) | |
tree | a8ffd5fd966512fd280bc1b3214f4e57a9e1805f /compiler/optimizing/ssa_builder.h | |
parent | 92095533ac28879ddd8b44b559d700527ca12b8a (diff) |
Ensure the graph is correctly typed.
We used to be forgiving because of HIntConstant(0) also being
used for null. We now create a special HNullConstant for such uses.
Also, we need to run the dead phi elimination twice during ssa
building to ensure the correctness.
Change-Id: If479efa3680d3358800aebb1cca692fa2d94f6e5
Diffstat (limited to 'compiler/optimizing/ssa_builder.h')
-rw-r--r-- | compiler/optimizing/ssa_builder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/ssa_builder.h b/compiler/optimizing/ssa_builder.h index 2eec87b618..148e9590c3 100644 --- a/compiler/optimizing/ssa_builder.h +++ b/compiler/optimizing/ssa_builder.h @@ -58,6 +58,8 @@ class SsaBuilder : public HGraphVisitor { HInstruction* instruction, Primitive::Type type); + static HInstruction* GetReferenceTypeEquivalent(HInstruction* instruction); + private: // Locals for the current block being visited. HEnvironment* current_locals_; |