Skip to content

Commit 0e7a129

Browse files
dgryskideadprogram
authored andcommitted
compiler: update testdata/string.ll
$ go test ./compiler -update
1 parent aeddcd9 commit 0e7a129

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/testdata/string.ll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ entry:
7171
; Function Attrs: nounwind
7272
define hidden i1 @main.stringCompareLarger(i8* %s1.data, i32 %s1.len, i8* %s2.data, i32 %s2.len, i8* %context, i8* %parentHandle) unnamed_addr #0 {
7373
entry:
74-
%0 = call i1 @runtime.stringLess(i8* %s1.data, i32 %s1.len, i8* %s2.data, i32 %s2.len, i8* undef, i8* null) #0
75-
%1 = xor i1 %0, true
76-
ret i1 %1
74+
%0 = call i1 @runtime.stringLess(i8* %s2.data, i32 %s2.len, i8* %s1.data, i32 %s1.len, i8* undef, i8* null) #0
75+
ret i1 %0
7776
}
7877

7978
declare i1 @runtime.stringLess(i8*, i32, i8*, i32, i8*, i8*)

0 commit comments

Comments
 (0)