mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
[TableGen] Remove !! that I can't really explain why I wrote. Also remove some unnecessary curly braces from the same area.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237513 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user