We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6063dec + e3afb32 commit cd2da72Copy full SHA for cd2da72
stdlib/public/RuntimeModule/Dwarf.swift
@@ -851,8 +851,13 @@ struct DwarfReader<S: DwarfSource & AnyObject> {
851
// .6 minimum_instruction_length
852
let minimumInstructionLength = UInt(try cursor.read(as: Dwarf_Byte.self))
853
854
- // .7 maximum_operations_per_instruction
855
- let maximumOpsPerInstruction = UInt(try cursor.read(as: Dwarf_Byte.self))
+ let maximumOpsPerInstruction: UInt
+ if version >= 4 {
856
+ // .7 maximum_operations_per_instruction
857
+ maximumOpsPerInstruction = UInt(try cursor.read(as: Dwarf_Byte.self))
858
+ } else {
859
+ maximumOpsPerInstruction = 1
860
+ }
861
862
// .8 default_is_stmt
863
let defaultIsStmt = try cursor.read(as: Dwarf_Byte.self) != 0
0 commit comments