[llvm] r237513 - [TableGen] Remove !! that I can't really explain why I wrote. Also remove some unnecessary curly braces from the same area.

Craig Topper craig.topper at gmail.com
Fri May 15 22:42:11 PDT 2015


Author: ctopper
Date: Sat May 16 00:42:11 2015
New Revision: 237513

URL: http://llvm.org/viewvc/llvm-project?rev=237513&view=rev
Log:
[TableGen] Remove !! that I can't really explain why I wrote. Also remove some unnecessary curly braces from the same area.

Modified:
    llvm/trunk/lib/TableGen/Record.cpp

Modified: llvm/trunk/lib/TableGen/Record.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/Record.cpp?rev=237513&r1=237512&r2=237513&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/Record.cpp (original)
+++ llvm/trunk/lib/TableGen/Record.cpp Sat May 16 00:42:11 2015
@@ -793,12 +793,10 @@ Init *UnOpInit::Fold(Record *CurRec, Mul
     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;
   }





More information about the llvm-commits mailing list