diff options
author | 2015-12-08 08:22:45 -0800 | |
---|---|---|
committer | 2015-12-08 08:22:45 -0800 | |
commit | 0b81f1715d6af9f98f982d6511e48973aa5a836a (patch) | |
tree | 06924f7e4b7f14db21fe41ec03a6b95eec29efeb /compiler/utils/arm/assembler_arm.h | |
parent | 641c83a8645ef9fd99dca06ec30bae8449b959c7 (diff) | |
parent | 2433d4e17c3006b8262a0d9421e201fc84777208 (diff) |
Merge "Allow initializing runtime with parsed options." am: e0d25b156e
am: 2433d4e17c
* commit '2433d4e17c3006b8262a0d9421e201fc84777208':
Allow initializing runtime with parsed options.
Diffstat (limited to 'compiler/utils/arm/assembler_arm.h')
-rw-r--r-- | compiler/utils/arm/assembler_arm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/utils/arm/assembler_arm.h b/compiler/utils/arm/assembler_arm.h index 4a6e6d7c3f..98a1a8f9a1 100644 --- a/compiler/utils/arm/assembler_arm.h +++ b/compiler/utils/arm/assembler_arm.h @@ -22,6 +22,7 @@ #include "base/bit_utils.h" #include "base/logging.h" +#include "base/stl_util.h" #include "base/value_object.h" #include "constants_arm.h" #include "utils/arm/managed_register_arm.h" @@ -697,10 +698,9 @@ class ArmAssembler : public Assembler { // Most of these are pure virtual as they need to be implemented per instruction set. // Create a new literal with a given value. - // NOTE: Force the template parameter to be explicitly specified. In the absence of - // std::omit_from_type_deduction<T> or std::identity<T>, use std::decay<T>. + // NOTE: Force the template parameter to be explicitly specified. template <typename T> - Literal* NewLiteral(typename std::decay<T>::type value) { + Literal* NewLiteral(typename Identity<T>::type value) { static_assert(std::is_integral<T>::value, "T must be an integral type."); return NewLiteral(sizeof(value), reinterpret_cast<const uint8_t*>(&value)); } |