summaryrefslogtreecommitdiff
path: root/compiler/dex/mir_optimization.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2014-08-22 23:14:27 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-08-22 23:14:27 +0000
commite18aa4316eb9a15cd6b1051f27a1ce49967c170e (patch)
tree2cf3b162acd637a6607c90ffb72f0e713d6bb507 /compiler/dex/mir_optimization.cc
parent02cdc91cae56a91e7833eae154fe9a7694103ae5 (diff)
parentd04d309276a6d35b34ff9805de3754299bbde4a9 (diff)
Merge "ART: Support MIRGraph constant interface"
Diffstat (limited to 'compiler/dex/mir_optimization.cc')
-rw-r--r--compiler/dex/mir_optimization.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/dex/mir_optimization.cc b/compiler/dex/mir_optimization.cc
index 6658848570..d37e9b6bdb 100644
--- a/compiler/dex/mir_optimization.cc
+++ b/compiler/dex/mir_optimization.cc
@@ -31,12 +31,12 @@ static unsigned int Predecessors(BasicBlock* bb) {
}
/* Setup a constant value for opcodes thare have the DF_SETS_CONST attribute */
-void MIRGraph::SetConstant(int32_t ssa_reg, int value) {
+void MIRGraph::SetConstant(int32_t ssa_reg, int32_t value) {
is_constant_v_->SetBit(ssa_reg);
constant_values_[ssa_reg] = value;
}
-void MIRGraph::SetConstantWide(int ssa_reg, int64_t value) {
+void MIRGraph::SetConstantWide(int32_t ssa_reg, int64_t value) {
is_constant_v_->SetBit(ssa_reg);
is_constant_v_->SetBit(ssa_reg + 1);
constant_values_[ssa_reg] = Low32Bits(value);