OSDN Git Service

Remove redundant assertion after cast, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 2 Apr 2016 17:41:52 +0000 (17:41 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 2 Apr 2016 17:41:52 +0000 (17:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265232 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/IRMover.cpp

index 9a69d0b..b7058f4 100644 (file)
@@ -1042,7 +1042,6 @@ void IRLinker::mapUnneededSubprograms() {
     return;
   for (unsigned I = 0, E = CompileUnits->getNumOperands(); I != E; ++I) {
     auto *CU = cast<DICompileUnit>(CompileUnits->getOperand(I));
-    assert(CU && "Expected valid compile unit");
 
     // Seed the ValueMap with the imported entities, in case they reference new
     // subprograms.