@@ -246,7 +246,7 @@ struct BridgedFunction {
246
246
}
247
247
248
248
bool hasSemanticsAttr (llvm::StringRef attrName) const {
249
- return getFunction ()->hasSemanticsAttr (attrName) ? 1 : 0 ;
249
+ return getFunction ()->hasSemanticsAttr (attrName);
250
250
}
251
251
252
252
swift::EffectsKind getEffectAttribute () const {
@@ -538,7 +538,7 @@ struct BridgedInstruction {
538
538
return getAs<swift::RefElementAddrInst>()->getFieldIndex ();
539
539
}
540
540
541
- SwiftInt RefElementAddrInst_fieldIsLet () const {
541
+ bool RefElementAddrInst_fieldIsLet () const {
542
542
return getAs<swift::RefElementAddrInst>()->getField ()->isLet ();
543
543
}
544
544
@@ -569,15 +569,19 @@ struct BridgedInstruction {
569
569
return swift::ApplySite (getInst ()).getCalleeArgIndexOfFirstAppliedArg ();
570
570
}
571
571
572
- SwiftInt PartialApplyInst_isOnStack () const {
573
- return getAs<swift::PartialApplyInst>()->isOnStack () ? 1 : 0 ;
572
+ bool PartialApplyInst_isOnStack () const {
573
+ return getAs<swift::PartialApplyInst>()->isOnStack ();
574
574
}
575
575
576
- SwiftInt AllocRefInstBase_isObjc () const {
576
+ bool AllocStackInst_hasDynamicLifetime () const {
577
+ return getAs<swift::AllocStackInst>()->hasDynamicLifetime ();
578
+ }
579
+
580
+ bool AllocRefInstBase_isObjc () const {
577
581
return getAs<swift::AllocRefInstBase>()->isObjC ();
578
582
}
579
583
580
- SwiftInt AllocRefInstBase_canAllocOnStack () const {
584
+ bool AllocRefInstBase_canAllocOnStack () const {
581
585
return getAs<swift::AllocRefInstBase>()->canAllocOnStack ();
582
586
}
583
587
@@ -613,12 +617,12 @@ struct BridgedInstruction {
613
617
return getAs<swift::BeginAccessInst>()->getEnforcement () == swift::SILAccessEnforcement::Static;
614
618
}
615
619
616
- SwiftInt CopyAddrInst_isTakeOfSrc () const {
617
- return getAs<swift::CopyAddrInst>()->isTakeOfSrc () ? 1 : 0 ;
620
+ bool CopyAddrInst_isTakeOfSrc () const {
621
+ return getAs<swift::CopyAddrInst>()->isTakeOfSrc ();
618
622
}
619
623
620
- SwiftInt CopyAddrInst_isInitializationOfDest () const {
621
- return getAs<swift::CopyAddrInst>()->isInitializationOfDest () ? 1 : 0 ;
624
+ bool CopyAddrInst_isInitializationOfDest () const {
625
+ return getAs<swift::CopyAddrInst>()->isInitializationOfDest ();
622
626
}
623
627
624
628
void RefCountingInst_setIsAtomic (bool isAtomic) const {
0 commit comments