mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
First bitcase use may not lead to a dbg.declare intrinsic. Iterate uses until one find's dbg.declare intrinsic.
Patch by Sunae Seo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85518 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
533297b58d
commit
94dfaec32c
@ -1304,9 +1304,10 @@ namespace llvm {
|
|||||||
// Look for the bitcast.
|
// Look for the bitcast.
|
||||||
for (Value::use_const_iterator I = V->use_begin(), E =V->use_end();
|
for (Value::use_const_iterator I = V->use_begin(), E =V->use_end();
|
||||||
I != E; ++I)
|
I != E; ++I)
|
||||||
if (isa<BitCastInst>(I))
|
if (isa<BitCastInst>(I)) {
|
||||||
return findDbgDeclare(*I, false);
|
const DbgDeclareInst *DDI = findDbgDeclare(*I, false);
|
||||||
|
if (DDI) return DDI;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user