From 6c02b4956cab4ebcb36d39fe9ff0cb646e120639 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Thu, 11 Nov 2021 03:35:13 +0100 Subject: interp: fix reverting of extractvalue/insertvalue with multiple indices --- interp/testdata/revert.out.ll | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'interp/testdata/revert.out.ll') diff --git a/interp/testdata/revert.out.ll b/interp/testdata/revert.out.ll index 4f38e4c41..edc474d5f 100644 --- a/interp/testdata/revert.out.ll +++ b/interp/testdata/revert.out.ll @@ -3,11 +3,14 @@ target triple = "x86_64--linux" @foo.knownAtRuntime = local_unnamed_addr global i64 0 @bar.knownAtRuntime = local_unnamed_addr global i64 0 +@baz.someGlobal = external local_unnamed_addr global [3 x { i64, i32 }] +@baz.someInt = local_unnamed_addr global i32 0 declare void @externalCall(i64) local_unnamed_addr define void @runtime.initAll() unnamed_addr { entry: + call fastcc void @baz.init(i8* undef, i8* undef) call fastcc void @foo.init(i8* undef, i8* undef) %val = load i64, i64* @foo.knownAtRuntime, align 8 store i64 %val, i64* @bar.knownAtRuntime, align 8 @@ -19,3 +22,7 @@ define internal fastcc void @foo.init(i8* %context, i8* %parentHandle) unnamed_a store i64 5, i64* @foo.knownAtRuntime, align 8 unreachable } + +define internal fastcc void @baz.init(i8* %context, i8* %parentHandle) unnamed_addr { + unreachable +} -- cgit v1.2.3