Silence one warning (clang)

This commit is contained in:
Nekotekina 2021-01-07 12:42:15 +03:00
parent 1dcf5e4f85
commit 6231b07d2a

View File

@ -827,7 +827,7 @@ struct llvm_neg
static_assert(llvm_value_t<T>::is_sint || llvm_value_t<T>::is_uint || llvm_value_t<T>::is_float, "llvm_neg<>: invalid type");
static constexpr auto opc = llvm_value_t<T>::is_float ? llvm::Instruction::FNeg : llvm::Instruction::Sub;
static constexpr int opc = llvm_value_t<T>::is_float ? +llvm::Instruction::FNeg : +llvm::Instruction::Sub;
llvm::Value* eval(llvm::IRBuilder<>* ir) const
{