summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-07 00:29:06 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-07 00:29:06 +0000
commit99fc38191b9f466fb7d44c1fddf49e766f2de565 (patch)
treeef9efe9bf1ef91d54d44b6d613a354d396d1a10a /clang/lib/Sema/SemaStmt.cpp
parent754cedf23fa4451f98b2d529a9b954acd14a4738 (diff)
downloadbcm5719-llvm-99fc38191b9f466fb7d44c1fddf49e766f2de565.tar.gz
bcm5719-llvm-99fc38191b9f466fb7d44c1fddf49e766f2de565.zip
[ms-inline asm] Stmt destructors are never called, so allocate the AsmToks using
the ASTContext BumpPtr. Also use the preferred llvm::ArrayRef interface. llvm-svn: 161373
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r--clang/lib/Sema/SemaStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp
index 718a7e6b538..5df1a50655c 100644
--- a/clang/lib/Sema/SemaStmt.cpp
+++ b/clang/lib/Sema/SemaStmt.cpp
@@ -2748,7 +2748,7 @@ StmtResult Sema::ActOnAsmStmt(SourceLocation AsmLoc, bool IsSimple,
}
StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc,
- SmallVectorImpl<Token> &AsmToks,
+ ArrayRef<Token> AsmToks,
std::string &AsmString,
SourceLocation EndLoc) {
// MS-style inline assembly is not fully supported, so emit a warning.
OpenPOWER on IntegriCloud