diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-09 21:06:32 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-09 21:06:32 +0000 |
commit | cace2103efe3449c406bcdfd4874dfb1e94c811a (patch) | |
tree | 4fdd7c66dadd083ffb182a7e828412dd54c2ef7b /lib/AST/Stmt.cpp | |
parent | 20316a948e293132d15af069bc35af859567b89d (diff) |
[ms-inline asm] Use StringRef here, per Jordan's suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161619 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r-- | lib/AST/Stmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index e5ff75eac6..f676711d7c 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -585,10 +585,10 @@ AsmStmt::AsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple, MSAsmStmt::MSAsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple, bool isvolatile, ArrayRef<Token> asmtoks, - ArrayRef<unsigned> lineends, std::string &asmstr, + ArrayRef<unsigned> lineends, StringRef asmstr, SourceLocation endloc) : Stmt(MSAsmStmtClass), AsmLoc(asmloc), EndLoc(endloc), - AsmStr(asmstr), IsSimple(issimple), IsVolatile(isvolatile), + AsmStr(asmstr.str()), IsSimple(issimple), IsVolatile(isvolatile), NumAsmToks(asmtoks.size()), NumLineEnds(lineends.size()) { AsmToks = new (C) Token[NumAsmToks]; |