Advertisement
Skytrias

llvm gen fail #2

Aug 12th, 2022
2,641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 2.58 KB | None | 0 0
  1. LLVM CODE GEN FAILED FOR PROCEDURE: src.main
  2. define internal void @src.main(i8* noalias nocapture nonnull %__.context_ptr) {
  3. decls:
  4.   %0 = alloca { %src.Test_Vertex*, i64, i64, %runtime.Allocator }, align 8
  5.   %1 = alloca %runtime.Source_Code_Location, align 8
  6.   %2 = alloca { { %src.Test_Vertex*, i64, i64, %runtime.Allocator }, i8 }, align 8
  7.   %3 = alloca %src.Test_Vertex*, align 8
  8.   br label %entry
  9.  
  10. entry:                                            ; preds = %decls
  11.   %4 = bitcast i8* %__.context_ptr to %runtime.Context*
  12.   %5 = getelementptr inbounds %runtime.Context, %runtime.Context* %4, i32 0, i32 0
  13.   %6 = load %runtime.Allocator, %runtime.Allocator* %5, align 8
  14.   %7 = bitcast %runtime.Allocator* %5 to { i64, i64 }*
  15.   %8 = load { i64, i64 }, { i64, i64 }* %7, align 8
  16.   store %runtime.Source_Code_Location { %..string { i8* getelementptr inbounds ([55 x i8], [55 x i8]* @"csbs$142", i64 0, i64 0), i64 54 }, i32 85, i32 14, %..string { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @"csbs$143", i64 0, i64 0), i64 4 } }, %runtime.Source_Code_Location* %1, align 8
  17.   %9 = bitcast { { %src.Test_Vertex*, i64, i64, %runtime.Allocator }, i8 }* %2 to i8*
  18.   call void @llvm.memset.p0i8.i64(i8* %9, i8 0, i64 48, i1 false)
  19.   %10 = bitcast %runtime.Context* %4 to i8*
  20.   call void @runtime.make_dynamic_array_len_cap-50127({ { %src.Test_Vertex*, i64, i64, %runtime.Allocator }, i8 }* sret %2, i64 0, i64 32, { i64, i64 } %8, %runtime.Source_Code_Location* %1, i8* %10)
  21.   %11 = load { { %src.Test_Vertex*, i64, i64, %runtime.Allocator }, i8 }, { { %src.Test_Vertex*, i64, i64, %runtime.Allocator }, i8 }* %2, align 8
  22.   %12 = getelementptr inbounds { { %src.Test_Vertex*, i64, i64, %runtime.Allocator }, i8 }, { { %src.Test_Vertex*, i64, i64, %runtime.Allocator }, i8 }* %2, i32 0, i32 0
  23.   %13 = load { %src.Test_Vertex*, i64, i64, %runtime.Allocator }, { %src.Test_Vertex*, i64, i64, %runtime.Allocator }* %12, align 8
  24.   store { %src.Test_Vertex*, i64, i64, %runtime.Allocator } %13, { %src.Test_Vertex*, i64, i64, %runtime.Allocator }* %0, align 8
  25.   %14 = load { %src.Test_Vertex*, i64, i64, %runtime.Allocator }, { %src.Test_Vertex*, i64, i64, %runtime.Allocator }* %0, align 8
  26.   %15 = call %src.Test_Vertex* @runtime.raw_dynamic_array_data-50169({ %src.Test_Vertex*, i64, i64, %runtime.Allocator }* %0)
  27.   %16 = getelementptr %src.Test_Vertex*, %src.Test_Vertex* %15, i64 10
  28.   store %src.Test_Vertex** %16, %src.Test_Vertex** %3, align 8
  29.   ret void
  30. }
  31.  
  32.  
  33.  
  34.  
  35. Stored value type does not match pointer operand type!
  36.   store %src.Test_Vertex** %16, %src.Test_Vertex** %3, align 8
  37.  %src.Test_Vertex*make:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement