Prefer copy init over direct init. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239327 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2015-06-08 18:58:57 +00:00
parent fa6bc2e94d
commit 9ebaf8ce67

View 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');