diff options
| author | 2015-08-07 16:19:01 -0700 | |
|---|---|---|
| committer | 2015-08-07 16:19:01 -0700 | |
| commit | eb3bd88f263d8fed12132bb3cb4444c6f289c6ca (patch) | |
| tree | e3f86ccf55bd5f8f80390c5c0af690854a9c8956 /runtime/dex_instruction_utils.h | |
| parent | 3ded7766981b3105c7686e0c9d75c378c42fa4a0 (diff) | |
Fix C++14 bitrot.
Change-Id: I22f7925a87bca45646c563971342a9a1b2090ba6
Diffstat (limited to 'runtime/dex_instruction_utils.h')
| -rw-r--r-- | runtime/dex_instruction_utils.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/runtime/dex_instruction_utils.h b/runtime/dex_instruction_utils.h index f892f980a1..1ae2b1b108 100644 --- a/runtime/dex_instruction_utils.h +++ b/runtime/dex_instruction_utils.h @@ -144,49 +144,49 @@ constexpr DexInvokeType InvokeInstructionType(Instruction::Code opcode) { constexpr DexMemAccessType IGetMemAccessType(Instruction::Code code) { #if __cplusplus >= 201402 // C++14 allows the DCHECK() in constexpr functions. - DCHECK(IsInstructionIGet(opcode)); + DCHECK(IsInstructionIGet(code)); #endif return static_cast<DexMemAccessType>(code - Instruction::IGET); } constexpr DexMemAccessType IPutMemAccessType(Instruction::Code code) { #if __cplusplus >= 201402 // C++14 allows the DCHECK() in constexpr functions. - DCHECK(IsInstructionIPut(opcode)); + DCHECK(IsInstructionIPut(code)); #endif return static_cast<DexMemAccessType>(code - Instruction::IPUT); } constexpr DexMemAccessType SGetMemAccessType(Instruction::Code code) { #if __cplusplus >= 201402 // C++14 allows the DCHECK() in constexpr functions. - DCHECK(IsInstructionSGet(opcode)); + DCHECK(IsInstructionSGet(code)); #endif return static_cast<DexMemAccessType>(code - Instruction::SGET); } constexpr DexMemAccessType SPutMemAccessType(Instruction::Code code) { #if __cplusplus >= 201402 // C++14 allows the DCHECK() in constexpr functions. - DCHECK(IsInstructionSPut(opcode)); + DCHECK(IsInstructionSPut(code)); #endif return static_cast<DexMemAccessType>(code - Instruction::SPUT); } constexpr DexMemAccessType AGetMemAccessType(Instruction::Code code) { #if __cplusplus >= 201402 // C++14 allows the DCHECK() in constexpr functions. - DCHECK(IsInstructionAGet(opcode)); + DCHECK(IsInstructionAGet(code)); #endif return static_cast<DexMemAccessType>(code - Instruction::AGET); } constexpr DexMemAccessType APutMemAccessType(Instruction::Code code) { #if __cplusplus >= 201402 // C++14 allows the DCHECK() in constexpr functions. - DCHECK(IsInstructionAPut(opcode)); + DCHECK(IsInstructionAPut(code)); #endif return static_cast<DexMemAccessType>(code - Instruction::APUT); } constexpr DexMemAccessType IGetOrIPutMemAccessType(Instruction::Code code) { #if __cplusplus >= 201402 // C++14 allows the DCHECK() in constexpr functions. - DCHECK(IsInstructionIGetOrIPut(opcode)); + DCHECK(IsInstructionIGetOrIPut(code)); #endif return (code >= Instruction::IPUT) ? IPutMemAccessType(code) : IGetMemAccessType(code); } @@ -216,14 +216,14 @@ static inline DexMemAccessType IGetQuickOrIPutQuickMemAccessType(Instruction::Co constexpr DexMemAccessType SGetOrSPutMemAccessType(Instruction::Code code) { #if __cplusplus >= 201402 // C++14 allows the DCHECK() in constexpr functions. - DCHECK(IsInstructionSGetOrSPut(opcode)); + DCHECK(IsInstructionSGetOrSPut(code)); #endif return (code >= Instruction::SPUT) ? SPutMemAccessType(code) : SGetMemAccessType(code); } constexpr DexMemAccessType AGetOrAPutMemAccessType(Instruction::Code code) { #if __cplusplus >= 201402 // C++14 allows the DCHECK() in constexpr functions. - DCHECK(IsInstructionAGetOrAPut(opcode)); + DCHECK(IsInstructionAGetOrAPut(code)); #endif return (code >= Instruction::APUT) ? APutMemAccessType(code) : AGetMemAccessType(code); } |