We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a54410 commit 80f09c9Copy full SHA for 80f09c9
clang/lib/CodeGen/CGVTables.cpp
@@ -127,6 +127,9 @@ static void resolveTopLevelMetadata(llvm::Function *Fn,
127
auto *NewDIS = llvm::MDNode::replaceWithDistinct(DIS->clone());
128
// As DISubprogram remapping is avoided, clear retained nodes list of
129
// cloned DISubprogram from retained nodes local to original DISubprogram.
130
+ // FIXME: Information about optimized-out variables, labels,
131
+ // and local entities may be lost here, as retained nodes are not
132
+ // remapped.
133
NewDIS->replaceRetainedNodes(llvm::MDTuple::get(Fn->getContext(), {}));
134
VMap.MD()[DIS].reset(NewDIS);
135
0 commit comments