mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Fix a bug.
If I->use_empty(), this method should return false. llvm-svn: 67180
This commit is contained in:
parent
3d7fb6738a
commit
90fc23d03d
@ -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