From 8ddb0d825d84af211dc0928b0e46c2392c339861 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 16 May 2015 05:42:11 +0000 Subject: [TableGen] Remove !! that I can't really explain why I wrote. Also remove some unnecessary curly braces from the same area. llvm-svn: 237513 --- llvm/lib/TableGen/Record.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'llvm/lib') 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(LHS)) { - return IntInit::get(!!LHSl->empty()); - } - if (StringInit *LHSs = dyn_cast(LHS)) { - return IntInit::get(!!LHSs->getValue().empty()); - } + if (ListInit *LHSl = dyn_cast(LHS)) + return IntInit::get(LHSl->empty()); + if (StringInit *LHSs = dyn_cast(LHS)) + return IntInit::get(LHSs->getValue().empty()); break; } -- cgit v1.2.3