[TableGen] Remove !! that I can't really explain why I wrote. Also remove some unnecessary curly braces from the same area.

llvm-svn: 237513
This commit is contained in:
Craig Topper 2015-05-16 05:42:11 +00:00
parent 9a9d58a238
commit 8ddb0d825d
1 changed files with 4 additions and 6 deletions

View File

@ -793,12 +793,10 @@ Init *UnOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const {
break; break;
} }
case EMPTY: { case EMPTY: {
if (ListInit *LHSl = dyn_cast<ListInit>(LHS)) { if (ListInit *LHSl = dyn_cast<ListInit>(LHS))
return IntInit::get(!!LHSl->empty()); return IntInit::get(LHSl->empty());
} if (StringInit *LHSs = dyn_cast<StringInit>(LHS))
if (StringInit *LHSs = dyn_cast<StringInit>(LHS)) { return IntInit::get(LHSs->getValue().empty());
return IntInit::get(!!LHSs->getValue().empty());
}
break; break;
} }