From 9ebaf8ce67c96dd98ce76d002ab215e324d3dac5 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 8 Jun 2015 18:58:57 +0000 Subject: [PATCH] Prefer copy init over direct init. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239327 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/AsmWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.34.1