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;
|
||||
}
|
||||
case EMPTY: {
|
||||
if (ListInit *LHSl = dyn_cast<ListInit>(LHS)) {
|
||||
return IntInit::get(!!LHSl->empty());
|
||||
}
|
||||
if (StringInit *LHSs = dyn_cast<StringInit>(LHS)) {
|
||||
return IntInit::get(!!LHSs->getValue().empty());
|
||||
}
|
||||
if (ListInit *LHSl = dyn_cast<ListInit>(LHS))
|
||||
return IntInit::get(LHSl->empty());
|
||||
if (StringInit *LHSs = dyn_cast<StringInit>(LHS))
|
||||
return IntInit::get(LHSs->getValue().empty());
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue