summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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/Transforms
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/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index c8878b0ec0a..40f5d4ce361 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -1302,7 +1302,7 @@ updateInlinedAtInfo(const DebugLoc &DL, DILocation *InlinedAtNode,
/// to encode location where these instructions are inlined.
static void fixupLineNumbers(Function *Fn, Function::iterator FI,
Instruction *TheCall) {
- DebugLoc TheCallDL = TheCall->getDebugLoc();
+ const DebugLoc &TheCallDL = TheCall->getDebugLoc();
if (!TheCallDL)
return;
OpenPOWER on IntegriCloud