From: Benjamin Kramer Date: Mon, 8 Jun 2015 18:58:57 +0000 (+0000) Subject: Prefer copy init over direct init. NFC. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9ebaf8ce67c96dd98ce76d002ab215e324d3dac5;p=oota-llvm.git Prefer copy init over direct init. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239327 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp index b147f9d79d6..0744fdf4015 100644 --- a/lib/IR/AsmWriter.cpp +++ b/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');