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)
llvm-svn: 165511

llvm/lib/TableGen/TGParser.cpp

index 82d1957..0ed75f0 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");
     }