diff options
author | Karl-Johan Karlsson <karl-johan.karlsson@ericsson.com> | 2017-09-06 08:47:18 +0000 |
---|---|---|
committer | Karl-Johan Karlsson <karl-johan.karlsson@ericsson.com> | 2017-09-06 08:47:18 +0000 |
commit | 33e205a40f8a111bc1cd9e30ccff080fc29ff789 (patch) | |
tree | 5c91b82f1a0b5be97df79660f2655c9cd9108c04 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | f3ecda6057e75d43d37ec823f939b23410c92eff (diff) | |
download | llvm-33e205a40f8a111bc1cd9e30ccff080fc29ff789.zip llvm-33e205a40f8a111bc1cd9e30ccff080fc29ff789.tar.gz llvm-33e205a40f8a111bc1cd9e30ccff080fc29ff789.tar.bz2 |
Debug info: Fixed faulty debug locations for attributed statements
Summary:
As the attributed statements are considered simple statements no
stoppoint was generated before emitting attributed do/while/for/range-
statement. This lead to faulty debug locations.
Reviewers: echristo, aaron.ballman, dblaikie
Reviewed By: dblaikie
Subscribers: bjope, aprantl, cfe-commits
Differential Revision: https://reviews.llvm.org/D37428
llvm-svn: 312623
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index da68074..70346e4 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2534,7 +2534,7 @@ public: /// This function may clear the current insertion point; callers should use /// EnsureInsertPoint if they wish to subsequently generate code without first /// calling EmitBlock, EmitBranch, or EmitStmt. - void EmitStmt(const Stmt *S); + void EmitStmt(const Stmt *S, ArrayRef<const Attr *> Attrs = None); /// EmitSimpleStmt - Try to emit a "simple" statement which does not /// necessarily require an insertion point or debug information; typically |