commit | e035519df392f87833b9f18e113129f55d90a7b7 | [log] [tgz] |
---|---|---|
author | Gabor Greif <ggreif@gmail.com> | Thu Jul 22 13:36:47 2010 +0000 |
committer | Gabor Greif <ggreif@gmail.com> | Thu Jul 22 13:36:47 2010 +0000 |
tree | 86a40f3abd0a781fd38106bc6f9b3137ccab1787 | |
parent | b0464a9768de385a0902c9454affd8a407755f64 [diff] [blame] |
mass elimination of reliance on automatic iterator dereferencing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109103 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/IPO/StructRetPromotion.cpp b/lib/Transforms/IPO/StructRetPromotion.cpp index 6857ef5..e16dcd4 100644 --- a/lib/Transforms/IPO/StructRetPromotion.cpp +++ b/lib/Transforms/IPO/StructRetPromotion.cpp
@@ -187,7 +187,7 @@ 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