aboutsummaryrefslogtreecommitdiffhomepage
path: root/transform/rtcalls.go
diff options
context:
space:
mode:
Diffstat (limited to 'transform/rtcalls.go')
-rw-r--r--transform/rtcalls.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/transform/rtcalls.go b/transform/rtcalls.go
index b7192ad4f..36d2853b6 100644
--- a/transform/rtcalls.go
+++ b/transform/rtcalls.go
@@ -142,7 +142,7 @@ func OptimizeReflectImplements(mod llvm.Module) {
if strings.HasPrefix(interfaceType.Name(), "reflect/types.type:named:") {
// Get the underlying type.
- interfaceType = stripPointerCasts(builder.CreateExtractValue(interfaceType.Initializer(), 2, ""))
+ interfaceType = stripPointerCasts(builder.CreateExtractValue(interfaceType.Initializer(), 3, ""))
}
if !strings.HasPrefix(interfaceType.Name(), "reflect/types.type:interface:") {
// This is an error. The Type passed to Implements should be of