mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
Fix a bug.
If I->use_empty(), this method should return false. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67180 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa9df0b0c3
commit
df95a2f6a9
@ -262,6 +262,9 @@ bool llvm::OnlyUsedByDbgInfoIntrinsics(Instruction *I,
|
||||
if (DbgInUses)
|
||||
DbgInUses->clear();
|
||||
|
||||
if (I->use_empty())
|
||||
return false;
|
||||
|
||||
for (Value::use_iterator UI = I->use_begin(), UE = I->use_end(); UI != UE;
|
||||
++UI) {
|
||||
if (DbgInfoIntrinsic *DI = dyn_cast<DbgInfoIntrinsic>(*UI)) {
|
||||
|
3961
test/Transforms/ScalarRepl/2009-03-17-CleanUp.ll
Normal file
3961
test/Transforms/ScalarRepl/2009-03-17-CleanUp.ll
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user