mass elimination of reliance on automatic iterator dereferencing
[oota-llvm.git] / lib / Transforms / IPO / StructRetPromotion.cpp
index 6857ef52460e06b2558bb301880cfa9fa9b726ca..e16dcd4afaa97a6ceff3e38015db9d57d45711ae 100644 (file)
@@ -187,7 +187,7 @@ bool SRETPromotion::isSafeToUpdateAllCallers(Function *F) {
           return false;
         for (Value::use_iterator GEPI = GEP->use_begin(), GEPE = GEP->use_end();
              GEPI != GEPE; ++GEPI) 
-          if (!isa<LoadInst>(GEPI))
+          if (!isa<LoadInst>(*GEPI))
             return false;
       } 
       // Any other FirstArg users make this function unsuitable for sret