mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-08 15:24:21 +00:00
PR9214: Convert Metadata API to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129932 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -104,7 +104,7 @@ bool llvm::isAllocaPromotable(const AllocaInst *AI) {
|
||||
/// FindAllocaDbgDeclare - Finds the llvm.dbg.declare intrinsic describing the
|
||||
/// alloca 'V', if any.
|
||||
static DbgDeclareInst *FindAllocaDbgDeclare(Value *V) {
|
||||
if (MDNode *DebugNode = MDNode::getIfExists(V->getContext(), &V, 1))
|
||||
if (MDNode *DebugNode = MDNode::getIfExists(V->getContext(), V))
|
||||
for (Value::use_iterator UI = DebugNode->use_begin(),
|
||||
E = DebugNode->use_end(); UI != E; ++UI)
|
||||
if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(*UI))
|
||||
|
Reference in New Issue
Block a user