summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/TreeTransform.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-09-26 22:28:32 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-09-26 22:28:32 +0000
commitbf322b7cdd608630a42fd65687b74051601c357d (patch)
tree1f64cacf0352eeef4054fdd55e9700b0633058b3 /clang/lib/Sema/TreeTransform.h
parentc89872497457676bbbb564155cc669d587614d00 (diff)
downloadbcm5719-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/Sema/TreeTransform.h')
-rw-r--r--clang/lib/Sema/TreeTransform.h1
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()) {
OpenPOWER on IntegriCloud