HexagonISelLowering.cpp: fix 'enum in bool context' warning

llvm-svn: 327832
This commit is contained in:
Hans Wennborg 2018-03-19 12:55:58 +00:00
parent 0171a9f4ec
commit 13e8a85820
1 changed files with 2 additions and 2 deletions

View File

@ -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;