Skip to content

Commit 0f1c6d2

Browse files
committed
Fix thinko in README
1 parent e223097 commit 0f1c6d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ builder.positionAtEnd(of: entryBB)
107107
let local = builder.buildAlloca(type: FloatType.double, name: "local")
108108

109109
// Compare to the condition
110-
let test = builder.buildICmp(function.parameters[0], IntType.int1.zero(), .notEqual)
110+
let test = builder.buildICmp(function.parameters[0], IntType.int1.zero(), .equal)
111111

112112
// Create basic blocks for "then", "else", and "merge"
113113
let thenBB = function.appendBasicBlock(named: "then")

0 commit comments

Comments
 (0)