mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-31 09:25:42 +00:00
Use do+while instead of while for loops which obviously have a
non-zero trip count. Use SmallVector's pop_back_val(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -562,8 +562,7 @@ bool MemCpyOpt::performCallSlotOptzn(MemCpyInst *cpy, CallInst *C) {
|
||||
SmallVector<User*, 8> srcUseList(srcAlloca->use_begin(),
|
||||
srcAlloca->use_end());
|
||||
while (!srcUseList.empty()) {
|
||||
User *UI = srcUseList.back();
|
||||
srcUseList.pop_back();
|
||||
User *UI = srcUseList.pop_back_val();
|
||||
|
||||
if (isa<BitCastInst>(UI)) {
|
||||
for (User::use_iterator I = UI->use_begin(), E = UI->use_end();
|
||||
|
Reference in New Issue
Block a user