diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-07-22 13:36:47 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-07-22 13:36:47 +0000 |
| commit | dde79d8f1a8c08d386be32260f84c7a95cb356b8 (patch) | |
| tree | 89cfba9be48e0310d4f489ba04b0d8990881c9ed /llvm/lib/Transforms/InstCombine | |
| parent | 0525393a7954395014db6d7b1833df8c4121f6de (diff) | |
| download | bcm5719-llvm-dde79d8f1a8c08d386be32260f84c7a95cb356b8.tar.gz bcm5719-llvm-dde79d8f1a8c08d386be32260f84c7a95cb356b8.zip | |
mass elimination of reliance on automatic iterator dereferencing
llvm-svn: 109103
Diffstat (limited to 'llvm/lib/Transforms/InstCombine')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp index 8933a0b137a..5001896a5b3 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp @@ -369,7 +369,7 @@ DbgDeclareInst *InstCombiner::hasOneUsePlusDeclare(Value *V) { if (DbgDeclareInst *DI = dyn_cast<DbgDeclareInst>(U)) return DI; if (isa<BitCastInst>(U) && U->hasOneUse()) { - if (DbgDeclareInst *DI = dyn_cast<DbgDeclareInst>(U->use_begin())) + if (DbgDeclareInst *DI = dyn_cast<DbgDeclareInst>(*U->use_begin())) return DI; } } |

