File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1370,7 +1370,6 @@ func (v Value) Indices() []uint32 {
13701370func (v Value ) IntPredicate () IntPredicate { return IntPredicate (C .LLVMGetICmpPredicate (v .C )) }
13711371func (v Value ) FloatPredicate () FloatPredicate { return FloatPredicate (C .LLVMGetFCmpPredicate (v .C )) }
13721372
1373-
13741373//-------------------------------------------------------------------------
13751374// llvm.Builder
13761375//-------------------------------------------------------------------------
@@ -1679,10 +1678,10 @@ func (b Builder) CreateFree(p Value) (v Value) {
16791678 v .C = C .LLVMBuildFree (b .C , p .C )
16801679 return
16811680}
1682- func (b Builder ) CreateLoad (p Value , name string ) (v Value ) {
1681+ func (b Builder ) CreateLoad (t Type , p Value , name string ) (v Value ) {
16831682 cname := C .CString (name )
16841683 defer C .free (unsafe .Pointer (cname ))
1685- v .C = C .LLVMBuildLoad ( b .C , p .C , cname )
1684+ v .C = C .LLVMBuildLoad2 ( b . C , t .C , p .C , cname )
16861685 return
16871686}
16881687func (b Builder ) CreateStore (val Value , p Value ) (v Value ) {
You can’t perform that action at this time.
0 commit comments