[llvm] r265232 - Remove redundant assertion after cast, NFC

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 2 10:41:52 PDT 2016


Author: dexonsmith
Date: Sat Apr  2 12:41:52 2016
New Revision: 265232

URL: http://llvm.org/viewvc/llvm-project?rev=265232&view=rev
Log:
Remove redundant assertion after cast, NFC

Modified:
    llvm/trunk/lib/Linker/IRMover.cpp

Modified: llvm/trunk/lib/Linker/IRMover.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/IRMover.cpp?rev=265232&r1=265231&r2=265232&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/IRMover.cpp (original)
+++ llvm/trunk/lib/Linker/IRMover.cpp Sat Apr  2 12:41:52 2016
@@ -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.




More information about the llvm-commits mailing list