cl: compileValue check types.Default for const
This commit is contained in:
@@ -208,7 +208,7 @@ func (p Program) tyInt64() llvm.Type {
|
||||
}
|
||||
|
||||
func (p Program) toLLVMType(typ types.Type) Type {
|
||||
switch t := types.Default(typ).(type) {
|
||||
switch t := typ.(type) {
|
||||
case *types.Basic:
|
||||
switch t.Kind() {
|
||||
case types.Int:
|
||||
|
||||
Reference in New Issue
Block a user