Skip to content

Commit fd5e7a1

Browse files
committed
Fix issue in test file.
1 parent 0725ff3 commit fd5e7a1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

llvm/test/Transforms/WholeProgramDevirt/availableexternal-check.ll

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ target triple = "x86_64-unknown-linux"
2626

2727
declare ptr @_ZNKSt9exception4whatEv()
2828

29-
define i64 @_Z4testPSt9exception() {
30-
%1 = call i1 @llvm.type.test(ptr null, metadata !"_ZTSSt9exception")
31-
tail call void @llvm.assume(i1 %1)
32-
%2 = getelementptr i8, ptr null, i64 16
33-
%3 = load ptr, ptr %2, align 8
34-
%4 = tail call ptr %3(ptr null)
35-
ret i64 0
29+
define ptr @_Z4testPSt9exception() {
30+
%1 = load ptr, ptr null, align 8
31+
%2 = call i1 @llvm.type.test(ptr %1, metadata !"_ZTSSt9exception")
32+
tail call void @llvm.assume(i1 %2)
33+
%3 = getelementptr i8, ptr %1, i64 16
34+
%4 = load ptr, ptr %3, align 8
35+
%5 = tail call ptr %4(ptr null)
36+
ret ptr %5
3637
}
3738

3839
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)

0 commit comments

Comments
 (0)