File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,6 @@ class SILArgument : public ValueBase {
113
113
node->getKind () <= SILNodeKind::Last_SILArgument;
114
114
}
115
115
116
- bool isNoImplicitCopy () const ;
117
-
118
116
unsigned getIndex () const ;
119
117
120
118
// / Return non-null if \p value is a phi.
@@ -408,12 +406,6 @@ inline SILPhiArgument *SILArgument::isTerminatorResult(SILValue value) {
408
406
return nullptr ;
409
407
}
410
408
411
- inline bool SILArgument::isNoImplicitCopy () const {
412
- if (auto *fArg = dyn_cast<SILFunctionArgument>(this ))
413
- return fArg ->isNoImplicitCopy ();
414
- return false ;
415
- }
416
-
417
409
inline bool SILArgument::isTerminatorResult () const {
418
410
switch (getKind ()) {
419
411
case SILArgumentKind::SILPhiArgument:
Original file line number Diff line number Diff line change @@ -624,7 +624,9 @@ void SILSerializer::writeSILBasicBlock(const SILBasicBlock &BB) {
624
624
unsigned packedMetadata = 0 ;
625
625
packedMetadata |= unsigned (SA->getType ().getCategory ()); // 8 bits
626
626
packedMetadata |= unsigned (SA->getOwnershipKind ()) << 8 ; // 8 bits
627
- packedMetadata |= unsigned (SA->isNoImplicitCopy ()) << 16 ; // 1 bit
627
+ if (auto *SFA = dyn_cast<SILFunctionArgument>(SA)) {
628
+ packedMetadata |= unsigned (SFA->isNoImplicitCopy ()) << 16 ; // 1 bit
629
+ }
628
630
// Used: 17 bits. Free: 15.
629
631
//
630
632
// TODO: We should be able to shrink the packed metadata of the first two.
You can’t perform that action at this time.
0 commit comments