[PATCH] Sema: avoid reuse of Exprs when synthesizing operator=
Pavel Labath
labath at google.com
Fri Aug 16 09:14:32 PDT 2013
Hi doug.gregor,
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.
http://llvm-reviews.chandlerc.com/D1425
Files:
lib/Sema/SemaDeclCXX.cpp
test/Analysis/operator-calls.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1425.1.patch
Type: text/x-patch
Size: 21775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130816/8bcc1e11/attachment.bin>
More information about the cfe-commits
mailing list