forked from OSchip/llvm-project
HexagonISelLowering.cpp: fix 'enum in bool context' warning
llvm-svn: 327832
This commit is contained in:
parent
0171a9f4ec
commit
13e8a85820
|
@ -549,8 +549,8 @@ bool HexagonTargetLowering::getPostIndexedAddressParts(SDNode *N, SDNode *Op,
|
|||
if (!VT.isSimple())
|
||||
return false;
|
||||
bool IsLegalType = VT == MVT::i8 || VT == MVT::i16 || VT == MVT::i32 ||
|
||||
VT == MVT::i64 || VT == MVT::v2i16 || MVT::v2i32 ||
|
||||
VT == MVT::v4i8 || VT == MVT::v4i16 || MVT::v8i8 ||
|
||||
VT == MVT::i64 || VT == MVT::v2i16 || VT == MVT::v2i32 ||
|
||||
VT == MVT::v4i8 || VT == MVT::v4i16 || VT == MVT::v8i8 ||
|
||||
Subtarget.isHVXVectorType(VT.getSimpleVT());
|
||||
if (!IsLegalType)
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue