summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2014-08-13 07:29:08 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-08-12 19:23:43 +0000
commitc38752d535eefee3d5cd2399514bf405e9dd3827 (patch)
treecac9e48de30c20d39cf939384d4dc3d20013c039 /compiler
parent6c6c6f6683cbbb180b8b8c8f55886b067320e1e8 (diff)
parent181211de89df5615395a55114fe551b08e86bc4d (diff)
Merge "ART: Don't leave rex_ & length_ uninitialized"
Diffstat (limited to 'compiler')
-rw-r--r--compiler/utils/x86_64/assembler_x86_64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/utils/x86_64/assembler_x86_64.h b/compiler/utils/x86_64/assembler_x86_64.h
index ee1157520f..3f9f007f15 100644
--- a/compiler/utils/x86_64/assembler_x86_64.h
+++ b/compiler/utils/x86_64/assembler_x86_64.h
@@ -146,7 +146,7 @@ class Operand {
uint8_t length_;
uint8_t encoding_[6];
- explicit Operand(CpuRegister reg) { SetModRM(3, reg); }
+ explicit Operand(CpuRegister reg) : rex_(0), length_(0) { SetModRM(3, reg); }
// Get the operand encoding byte at the given index.
uint8_t encoding_at(int index) const {