summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/PR27401
Commit message (Collapse)AuthorAgeFilesLines
* Reland r267691 fixing PR27535.Vassil Vassilev2016-04-283-0/+39
| | | | llvm-svn: 267882
* Revert r267691, it caused PR27535.Nico Weber2016-04-273-39/+0
| | | | llvm-svn: 267744
* [modules] Fix Decl's Used invariant.Vassil Vassilev2016-04-273-0/+39
The Decl::isUsed has a value for every decl. In non-module builds it is very difficult (but possible) to break this invariant but when we walk up the redecl chain we find the neccessary information. When deserializing the decls from a module it is much more difficult to update correctly this invariant. The patch centralizes the information whether a decl is used in the canonical decl marking the entire entity as being used. Fixes https://llvm.org/bugs/show_bug.cgi?id=27401 Patch by Cristina Cristescu and me. Thanks to Richard Smith who helped to debug and understand the issue! Reviewed by Richard Smith. llvm-svn: 267691
OpenPOWER on IntegriCloud