Prefer copy init over direct init. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 8 Jun 2015 18:58:57 +0000 (18:58 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 8 Jun 2015 18:58:57 +0000 (18:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239327 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/AsmWriter.cpp

index b147f9d79d67e34900762ed660e586e7048725e6..0744fdf401573bdddabaa9673d8506e7a0024493 100644 (file)
@@ -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');