summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-08-12 00:53:41 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-08-12 00:53:41 +0000
commit32cb8c9b61858cdcdb91f9acdb267e2ce5d0f3f5 (patch)
tree97ba871782805e18f044f8003d1048e55eaa63b9 /clang/lib/Sema/SemaDecl.cpp
parentdca60b495822a869c08b9973e4c485a83e8b6c0e (diff)
downloadbcm5719-llvm-32cb8c9b61858cdcdb91f9acdb267e2ce5d0f3f5.tar.gz
bcm5719-llvm-32cb8c9b61858cdcdb91f9acdb267e2ce5d0f3f5.zip
Remove unused and undesirable reference from BindingDecl to DecompositionDecl.
llvm-svn: 278448
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 6445dac7db0..4a68d60a1e2 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -6107,12 +6107,9 @@ NamedDecl *Sema::ActOnVariableDeclarator(
NewVD = cast<VarDecl>(Res.get());
AddToScope = false;
} else if (D.isDecompositionDeclarator()) {
- auto *NewDD = DecompositionDecl::Create(Context, DC, D.getLocStart(),
- D.getIdentifierLoc(), R, TInfo,
- SC, Bindings);
- for (auto *B : Bindings)
- B->setDecompositionDecl(NewDD);
- NewVD = NewDD;
+ NewVD = DecompositionDecl::Create(Context, DC, D.getLocStart(),
+ D.getIdentifierLoc(), R, TInfo, SC,
+ Bindings);
} else
NewVD = VarDecl::Create(Context, DC, D.getLocStart(),
D.getIdentifierLoc(), II, R, TInfo, SC);
OpenPOWER on IntegriCloud