diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-05-16 05:42:11 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-05-16 05:42:11 +0000 |
commit | 8ddb0d825d84af211dc0928b0e46c2392c339861 (patch) | |
tree | e4fe621477ded04814bd0cca606302ec4d8eb9a9 /llvm/lib/TableGen/Record.cpp | |
parent | 9a9d58a2385e9c676172bf0acb7f7c2ac7709f82 (diff) | |
download | bcm5719-llvm-8ddb0d825d84af211dc0928b0e46c2392c339861.tar.gz bcm5719-llvm-8ddb0d825d84af211dc0928b0e46c2392c339861.zip |
[TableGen] Remove !! that I can't really explain why I wrote. Also remove some unnecessary curly braces from the same area.
llvm-svn: 237513
Diffstat (limited to 'llvm/lib/TableGen/Record.cpp')
-rw-r--r-- | llvm/lib/TableGen/Record.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp index 0ce7b6f5d98..2c9b0244957 100644 --- a/llvm/lib/TableGen/Record.cpp +++ b/llvm/lib/TableGen/Record.cpp @@ -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; } |