Avoid using DIDescriptor.isNull().
[oota-llvm.git] / lib / Transforms / Utils / SSI.cpp
index 1c4afffeb0294e0cfbb6b764015566a4988a0510..4e813ddf95c7d44593965775d1f8f1e23bdb36b0 100644 (file)
@@ -416,7 +416,7 @@ bool SSIEverything::runOnFunction(Function &F) {
 
   for (Function::iterator B = F.begin(), BE = F.end(); B != BE; ++B)
     for (BasicBlock::iterator I = B->begin(), E = B->end(); I != E; ++I)
-      if (I->getType() != Type::getVoidTy(F.getContext()))
+      if (!I->getType()->isVoidTy())
         Insts.push_back(I);
 
   ssi.createSSI(Insts);