summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-06-08 18:58:57 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-06-08 18:58:57 +0000
commitf1cfc4244c33196f39911fd58adb50a323d67b07 (patch)
treecbc75625b31eb7cb331e12fad88751318a598cf9 /llvm/lib
parente8104ad0e8bbf25c084068378c3856df1861de2c (diff)
downloadbcm5719-llvm-f1cfc4244c33196f39911fd58adb50a323d67b07.tar.gz
bcm5719-llvm-f1cfc4244c33196f39911fd58adb50a323d67b07.zip
Prefer copy init over direct init. NFC.
llvm-svn: 239327
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index b147f9d79d6..0744fdf4015 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -2143,7 +2143,7 @@ void AssemblyWriter::printModule(const Module *M) {
Out << '\n';
// Split the string into lines, to make it easier to read the .ll file.
- StringRef Asm(M->getModuleInlineAsm());
+ StringRef Asm = M->getModuleInlineAsm();
do {
StringRef Front;
std::tie(Front, Asm) = Asm.split('\n');
OpenPOWER on IntegriCloud