tblgen: Remove pointless method call.
authorSean Silva <silvas@purdue.edu>
Tue, 9 Oct 2012 17:03:11 +0000 (17:03 +0000)
committerSean Silva <silvas@purdue.edu>
Tue, 9 Oct 2012 17:03:11 +0000 (17:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165511 91177308-0d34-0410-b5e6-96231b3b80d8

lib/TableGen/TGParser.cpp

index 82d195721489b8d1aa95ae3e5eafadaee3063096..0ed75f014eed602af94b4edf6cd87029a8cd36f8 100644 (file)
@@ -110,7 +110,6 @@ bool TGParser::SetValue(Record *CurRec, SMLoc Loc, Init *ValName,
     // Convert the incoming value to a bits type of the appropriate size...
     Init *BI = V->convertInitializerTo(BitsRecTy::get(BitList.size()));
     if (BI == 0) {
-      V->convertInitializerTo(BitsRecTy::get(BitList.size()));
       return Error(Loc, "Initializer is not compatible with bit range");
     }