diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-06-08 18:58:57 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-06-08 18:58:57 +0000 |
commit | f1cfc4244c33196f39911fd58adb50a323d67b07 (patch) | |
tree | cbc75625b31eb7cb331e12fad88751318a598cf9 /llvm/lib | |
parent | e8104ad0e8bbf25c084068378c3856df1861de2c (diff) | |
download | bcm5719-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.cpp | 2 |
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'); |