summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-06-12 17:30:47 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-06-12 17:30:47 +0000
commit4ca41fd09ed05286a22661b865a6ec5728a58d08 (patch)
tree8a1cbce4cbc754c1e1793ba0685fab3a42c4f165 /llvm/lib/CodeGen/AsmPrinter
parentb17b9a8324763a563bc03eafc8446fcf4c702491 (diff)
downloadbcm5719-llvm-4ca41fd09ed05286a22661b865a6ec5728a58d08.tar.gz
bcm5719-llvm-4ca41fd09ed05286a22661b865a6ec5728a58d08.zip
Run clang-tidy's performance-unnecessary-copy-initialization over LLVM.
No functionality change intended. llvm-svn: 272516
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 51226fd639c..7fba7688f7f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -998,7 +998,7 @@ void DwarfDebug::beginInstruction(const MachineInstr *MI) {
// Check if source location changes, but ignore DBG_VALUE locations.
if (!MI->isDebugValue()) {
- DebugLoc DL = MI->getDebugLoc();
+ const DebugLoc &DL = MI->getDebugLoc();
if (DL != PrevInstLoc) {
if (DL) {
unsigned Flags = 0;
OpenPOWER on IntegriCloud