diff options
author | Andreas Gampe <agampe@google.com> | 2014-08-12 23:24:16 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-08-12 23:59:15 -0700 |
commit | 181211de89df5615395a55114fe551b08e86bc4d (patch) | |
tree | aba37ee811011bb938f01a0095ae27f244cf5c7f /compiler/utils | |
parent | 290bf8214da0621bf9ddefc65a3bd310b935971f (diff) | |
download | art-181211de89df5615395a55114fe551b08e86bc4d.zip art-181211de89df5615395a55114fe551b08e86bc4d.tar.gz art-181211de89df5615395a55114fe551b08e86bc4d.tar.bz2 |
ART: Don't leave rex_ & length_ uninitialized
Don't leave fields uninitialized in the x86-64 utils assembler.
Bug: 16993295
Change-Id: I1d1b96f1d666660024116372de0014f1d19fd487
Diffstat (limited to 'compiler/utils')
-rw-r--r-- | compiler/utils/x86_64/assembler_x86_64.h | 2 |
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 ee11575..3f9f007 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 { |