diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-10 23:41:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-10 23:41:04 +0000 |
commit | fb5058ef67c054296c88db18ab1b3717845cb71d (patch) | |
tree | 28b31a230573ad4b481a6a174b479c81029d4894 /lib/CodeGen/CGStmt.cpp | |
parent | 458cd9c8a79b25b87dcea43c9d97a4c59f194799 (diff) |
add plumbing to report diagnostics back through sema for malformed asmstrings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index 26eb039d53..fddc547fd3 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -756,7 +756,8 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { // Analyze the asm string to decompose it into its pieces. We know that Sema // has already done this, so it is guaranteed to be successful. llvm::SmallVector<AsmStmt::AsmStringPiece, 4> Pieces; - S.AnalyzeAsmString(Pieces, getContext()); + unsigned DiagOffs; + S.AnalyzeAsmString(Pieces, getContext(), DiagOffs); // Assemble the pieces into the final asm string. std::string AsmString; |