IR: Replace uses of ConstantAggrUniqueMap with ConstantUniqueMap
[oota-llvm.git] / lib / CodeGen / JumpInstrTables.cpp
index 05a1b27c8fed004ba144d8912194c7727a0832b9..750f71f6022e4b2ad2fdf93f0b5abee9b6f72e50 100644 (file)
@@ -251,10 +251,6 @@ FunctionType *JumpInstrTables::transformType(FunctionType *FunTy) {
 }
 
 bool JumpInstrTables::runOnModule(Module &M) {
-  // Make sure the module is well-formed, especially with respect to jumptable.
-  if (verifyModule(M))
-    return false;
-
   JITI = &getAnalysis<JumpInstrTableInfo>();
 
   // Get the set of jumptable-annotated functions.
@@ -263,7 +259,7 @@ bool JumpInstrTables::runOnModule(Module &M) {
     if (F.hasFnAttribute(Attribute::JumpTable)) {
       assert(F.hasUnnamedAddr() &&
              "Attribute 'jumptable' requires 'unnamed_addr'");
-      Functions[&F] = NULL;
+      Functions[&F] = nullptr;
     }
   }