commit | f1cfc4244c33196f39911fd58adb50a323d67b07 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Mon Jun 08 18:58:57 2015 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Mon Jun 08 18:58:57 2015 +0000 |
tree | cbc75625b31eb7cb331e12fad88751318a598cf9 | |
parent | e8104ad0e8bbf25c084068378c3856df1861de2c [diff] [blame] |
Prefer copy init over direct init. NFC. llvm-svn: 239327
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index b147f9d..0744fdf 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp
@@ -2143,7 +2143,7 @@ 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');