Skip to content

Commit 4485825

Browse files
format
1 parent e03bac7 commit 4485825

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flang/lib/Optimizer/CodeGen/Target.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,14 +819,15 @@ struct TargetAArch64 : public GenericTarget<TargetAArch64> {
819819
// Zero extend for 'i1'.
820820
intExt = AT::IntegerExtension::Zero;
821821
} else {
822-
if (triple.isOSDarwin())
822+
if (triple.isOSDarwin()) {
823823
// On Darwin, sign extend. The apple developer guide specifies this as
824824
// a divergence from the AArch64PCS:
825825
// https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Pass-arguments-to-functions-correctly
826826
intExt = AT::IntegerExtension::Sign;
827-
else
827+
} else {
828828
// On linux, pass directly and do not extend.
829829
intExt = AT::IntegerExtension::None;
830+
}
830831
}
831832
CodeGenSpecifics::Marshalling marshal;
832833
marshal.emplace_back(argTy, AT{/*alignment=*/0, /*byval=*/false,

0 commit comments

Comments
 (0)