Skip to content

Commit 55ed4e3

Browse files
authored
[Clang][Sema] Remove invalid ctor (NFC) (#82161)
`TemplateArgumentLocInventIterator` default constructor should not exists https://github.com/llvm/llvm-project/blob/3496927edcd0685807351ba88a7e2cfb006e1c0d/clang/lib/Sema/TreeTransform.h#L4742 because it doesn't and couldn't initialize `Self` member that is reference: https://github.com/llvm/llvm-project/blob/3496927edcd0685807351ba88a7e2cfb006e1c0d/clang/lib/Sema/TreeTransform.h#L4721-L4723 Instantiation of this constructor is always a compile-time error. Please note, that I didn't run any tests, because cannot imagine situation where this constructor can be properly used. There are no new tests for this fix for the same reason.
1 parent a4422a5 commit 55ed4e3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/lib/Sema/TreeTransform.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4759,8 +4759,6 @@ class TemplateArgumentLocInventIterator {
47594759
const TemplateArgumentLoc *operator->() const { return &Arg; }
47604760
};
47614761

4762-
TemplateArgumentLocInventIterator() { }
4763-
47644762
explicit TemplateArgumentLocInventIterator(TreeTransform<Derived> &Self,
47654763
InputIterator Iter)
47664764
: Self(Self), Iter(Iter) { }

0 commit comments

Comments
 (0)