You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice that the value of `retVal` depends on the path the flow of control takes through this program, so we must emit a PHI node to properly initialize it:
96
93
97
94
```swift
98
-
let function = builder.addFunction(
99
-
"calculateFibs",
100
-
type: FunctionType(argTypes: [IntType.int1],
101
-
returnType: FloatType.double)
102
-
)
95
+
let function = builder.addFunction("calculateFibs",
96
+
type: FunctionType([IntType.int1],
97
+
FloatType.double))
103
98
let entryBB = function.appendBasicBlock(named: "entry")
0 commit comments