[RegisterBankInfo] Get rid of the assert in the constructor of InstructionMapping.
authorQuentin Colombet <qcolombet@apple.com>
Wed, 6 Apr 2016 18:43:46 +0000 (18:43 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Wed, 6 Apr 2016 18:43:46 +0000 (18:43 +0000)
The default constructor now uses the regular constructor and the assert
is not valid anymore.

llvm-svn: 265585

llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h

index 7155bd3..eb6d365 100644 (file)
@@ -100,8 +100,6 @@ public:
     /// \pre ID != InvalidMappingID
     InstructionMapping(unsigned ID, unsigned Cost, unsigned NumOperands)
         : ID(ID), Cost(Cost), NumOperands(NumOperands) {
-      assert(getID() != InvalidMappingID &&
-             "Use the default constructor for invalid mapping");
       OperandsMapping.reset(new ValueMapping[getNumOperands()]);
     }