[PATCH] D42541: [DeadArgumentElimination] Preserve llvm.dbg.values's first argument
Matt Davis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 26 13:09:11 PST 2018
mattd added inline comments.
================
Comment at: lib/IR/Metadata.cpp:342
+static DISubprogram *getLocalFunctionMetadata(Value *V) {
+ if (getLocalFunction(V))
+ return getLocalFunction(V)->getSubprogram();
----------------
One stylistic suggestion:
if (auto Fn = getLocalFunction(V))
...
https://reviews.llvm.org/D42541
More information about the llvm-commits
mailing list