1
0
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:
Zhou Sheng 2009-03-18 07:56:13 +00:00
parent 3d7fb6738a
commit 90fc23d03d
2 changed files with 3964 additions and 0 deletions

View File

@ -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)) {

File diff suppressed because one or more lines are too long