forked from OSchip/llvm-project
[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:
parent
9a9d58a238
commit
8ddb0d825d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue