diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-09-26 22:28:32 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-09-26 22:28:32 +0000 |
| commit | bf322b7cdd608630a42fd65687b74051601c357d (patch) | |
| tree | 1f64cacf0352eeef4054fdd55e9700b0633058b3 /clang/lib | |
| parent | c89872497457676bbbb564155cc669d587614d00 (diff) | |
| download | bcm5719-llvm-bf322b7cdd608630a42fd65687b74051601c357d.tar.gz bcm5719-llvm-bf322b7cdd608630a42fd65687b74051601c357d.zip | |
Always rebuild a DeclRefExpr if its FoundDecl would change.
Fixes a regression introduced by r369999.
llvm-svn: 373022
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/TreeTransform.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h index 9218f9eeb5a..84e38c6d78f 100644 --- a/clang/lib/Sema/TreeTransform.h +++ b/clang/lib/Sema/TreeTransform.h @@ -9219,6 +9219,7 @@ TreeTransform<Derived>::TransformDeclRefExpr(DeclRefExpr *E) { if (!getDerived().AlwaysRebuild() && QualifierLoc == E->getQualifierLoc() && ND == E->getDecl() && + Found == E->getFoundDecl() && NameInfo.getName() == E->getDecl()->getDeclName() && !E->hasExplicitTemplateArgs()) { |

