mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Pass stripNonLineTableDebugInfo remapDebugLoc lambda DebugLoc arg by const reference not value.
Noticed by clang-tidy performance-unnecessary-value-param warning.
This commit is contained in:
parent
452dc44d0b
commit
69760d421d
@ -647,7 +647,7 @@ bool llvm::stripNonLineTableDebugInfo(Module &M) {
|
||||
}
|
||||
for (auto &BB : F) {
|
||||
for (auto &I : BB) {
|
||||
auto remapDebugLoc = [&](DebugLoc DL) -> DebugLoc {
|
||||
auto remapDebugLoc = [&](const DebugLoc &DL) -> DebugLoc {
|
||||
auto *Scope = DL.getScope();
|
||||
MDNode *InlinedAt = DL.getInlinedAt();
|
||||
Scope = remap(Scope);
|
||||
|
Loading…
Reference in New Issue
Block a user