Fix conversion of operation for PtrHead to Head

This commit is contained in:
Masaaki Goshima 2021-12-05 11:38:56 +09:00
parent 45fb730c34
commit 918e816ae4
No known key found for this signature in database
GPG Key ID: 6A53785055537153
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ func (t OpType) HeadToOmitEmptyHead() OpType {
} }
func (t OpType) PtrHeadToHead() OpType { func (t OpType) PtrHeadToHead() OpType {
idx := strings.Index(t.String(), "Ptr") idx := strings.Index(t.String(), "PtrHead")
if idx == -1 { if idx == -1 {
return t return t
} }

View File

@ -894,7 +894,7 @@ func (t OpType) HeadToOmitEmptyHead() OpType {
} }
func (t OpType) PtrHeadToHead() OpType { func (t OpType) PtrHeadToHead() OpType {
idx := strings.Index(t.String(), "Ptr") idx := strings.Index(t.String(), "PtrHead")
if idx == -1 { if idx == -1 {
return t return t
} }