mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
Fix a warning in D149117 [-Wunused-but-set-variable]
This commit is contained in:
@@ -3004,7 +3004,8 @@ bool MemProfContextDisambiguation::applyImport(Module &M) {
|
||||
auto MIBIter = AllocNode.MIBs.begin();
|
||||
for (auto &MDOp : MemProfMD->operands()) {
|
||||
assert(MIBIter != AllocNode.MIBs.end());
|
||||
auto StackIdIndexIter = MIBIter->StackIdIndices.begin();
|
||||
LLVM_ATTRIBUTE_UNUSED auto StackIdIndexIter =
|
||||
MIBIter->StackIdIndices.begin();
|
||||
auto *MIBMD = cast<const MDNode>(MDOp);
|
||||
MDNode *StackMDNode = getMIBStackNode(MIBMD);
|
||||
assert(StackMDNode);
|
||||
|
||||
Reference in New Issue
Block a user