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:
Zhou Sheng 2009-03-18 07:56:13 +00:00
parent aa9df0b0c3
commit df95a2f6a9
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