From 5dddb1909c7c931e78f0a5835ce82f24299ec823 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 16 May 2015 05:42:11 +0000 Subject: [PATCH] [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 --- lib/TableGen/Record.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp index 0ce7b6f5d98..2c9b0244957 100644 --- a/lib/TableGen/Record.cpp +++ b/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; } -- 2.34.1