diff options
author | Pavel Labath <labath@google.com> | 2013-08-30 08:52:28 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2013-08-30 08:52:28 +0000 |
commit | 58934986f220dec8b75a76c2de03db029b65f336 (patch) | |
tree | 06f1d9b9f31d9df0ed3252de7f56cad54c187c62 /clang/lib/CodeGen/CGDebugInfo.h | |
parent | f79b0b15623a9138d629dac7f7928fa9630d83bc (diff) | |
download | bcm5719-llvm-58934986f220dec8b75a76c2de03db029b65f336.tar.gz bcm5719-llvm-58934986f220dec8b75a76c2de03db029b65f336.zip |
Sema: avoid reuse of Exprs when synthesizing operator=
Summary:
Previously, Sema was reusing parts of the AST when synthesizing an assignment
operator, turning it into a AS-dag. This caused problems for the static
analyzer, which assumed an expression appears in the tree only once.
Here I make sure to always create a fresh Expr, when inserting something into
the AST, fixing PR16745 in the process.
Reviewers: doug.gregor
CC: cfe-commits, jordan_rose
Differential Revision: http://llvm-reviews.chandlerc.com/D1425
llvm-svn: 189659
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
0 files changed, 0 insertions, 0 deletions