BUG= none
TEST= make -j32 -f Makefile.standalone CXX=g++ LLVM_EXTRA_WARNINGS="-Wno-unknown-pragmas -Wno-unused-parameter -Wno-comment -Wno-enum-compare -Wno-strict-aliasing" STDLIB_FLAGS=
(this command will compile but fail to link)
R=jpp@chromium.org
Review URL: https://codereview.chromium.org/
1452993002 .
case OperandARM32::RRX:
return 3; // 0b11
}
+
+ llvm::report_fatal_error("Unknown Shift value");
+ return 0;
}
// Returns the bits in the corresponding masked value.
template <>
std::array<llvm::SmallBitVector, RCX86_NUM>
- TargetX86Base<TargetX8632>::TypeToRegisterSet = {};
+ TargetX86Base<TargetX8632>::TypeToRegisterSet = {{}};
template <>
std::array<llvm::SmallBitVector,
TargetX86Base<TargetX8632>::Traits::RegisterSet::Reg_NUM>
- TargetX86Base<TargetX8632>::RegisterAliases = {};
+ TargetX86Base<TargetX8632>::RegisterAliases = {{}};
template <>
llvm::SmallBitVector
template <>
std::array<llvm::SmallBitVector, RCX86_NUM>
- TargetX86Base<TargetX8664>::TypeToRegisterSet = {};
+ TargetX86Base<TargetX8664>::TypeToRegisterSet = {{}};
template <>
std::array<llvm::SmallBitVector,
TargetX86Base<TargetX8664>::Traits::RegisterSet::Reg_NUM>
- TargetX86Base<TargetX8664>::RegisterAliases = {};
+ TargetX86Base<TargetX8664>::RegisterAliases = {{}};
template <>
llvm::SmallBitVector
template <typename T> bool isPositiveZero(T Val) {
static_assert(std::is_floating_point<T>::value,
"Input type must be floating point");
- return Val == 0 && !signbit(Val);
+ return Val == 0 && !std::signbit(Val);
}
} // end of anonymous namespace