Was only ever filled with one Etype (TFORW) and only used
in one place. Easier to just check for TFORW.
Change-Id: Icc96da3a22b0af1d7e60bc5841c744916c53341e
Reviewed-on: https://go-review.googlesource.com/c/147285
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
var simtype [NTYPE]types.EType
var (
- isforw [NTYPE]bool
isInt [NTYPE]bool
isFloat [NTYPE]bool
isComplex [NTYPE]bool
return lsym
}
// TODO(mdempsky): Investigate whether this can happen.
- if isforw[tbase.Etype] {
+ if tbase.Etype == TFORW {
return lsym
}
}
isComplex[TCOMPLEX64] = true
isComplex[TCOMPLEX128] = true
- isforw[TFORW] = true
-
// initialize okfor
for et := types.EType(0); et < NTYPE; et++ {
if isInt[et] || et == TIDEAL {