Skip to content

Commit c363dad

Browse files
committed
Merge pull request #16538 from davezarzycki/nfc_build_after_clang_r332076
2 parents 54ec38b + 77494e2 commit c363dad

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

include/swift/SIL/SILInstruction.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -918,11 +918,12 @@ class MultipleValueInstructionTrailingObjects<Derived, DerivedResult,
918918
if (!NumResults)
919919
return;
920920

921-
auto **ParentPtr =
922-
this->template getTrailingObjects<MultipleValueInstruction *>();
921+
auto **ParentPtr = this->TrailingObjects::template
922+
getTrailingObjects<MultipleValueInstruction *>();
923923
*ParentPtr = static_cast<MultipleValueInstruction *>(Parent);
924924

925-
auto *DataPtr = this->template getTrailingObjects<DerivedResult>();
925+
auto *DataPtr = this->TrailingObjects::template
926+
getTrailingObjects<DerivedResult>();
926927
for (unsigned i : range(NumResults)) {
927928
::new (&DataPtr[i]) DerivedResult(i, Types[i], OwnershipKinds[i],
928929
std::forward<Args>(OtherArgs)...);
@@ -935,7 +936,8 @@ class MultipleValueInstructionTrailingObjects<Derived, DerivedResult,
935936
~MultipleValueInstructionTrailingObjects() {
936937
if (!NumResults)
937938
return;
938-
auto *DataPtr = this->template getTrailingObjects<DerivedResult>();
939+
auto *DataPtr = this->TrailingObjects::template
940+
getTrailingObjects<DerivedResult>();
939941
// We call the DerivedResult destructors to ensure that:
940942
//
941943
// 1. If our derived results have any stored data that need to be cleaned
@@ -949,7 +951,8 @@ class MultipleValueInstructionTrailingObjects<Derived, DerivedResult,
949951

950952
public:
951953
ArrayRef<DerivedResult> getAllResultsBuffer() const {
952-
auto *ptr = this->template getTrailingObjects<DerivedResult>();
954+
auto *ptr = this->TrailingObjects::template
955+
getTrailingObjects<DerivedResult>();
953956
return { ptr, NumResults };
954957
}
955958

0 commit comments

Comments
 (0)