Made panic messages in expression-multiplex.go more informative
This commit is contained in:
parent
43130fd0da
commit
8bf3938842
@ -176,4 +176,3 @@ func (this *generator) generateBlockLoc (block *entity.Block) (llvm.Value, error
|
|||||||
|
|
||||||
return this.generateStatementLoc(block.Steps[lastIndex])
|
return this.generateStatementLoc(block.Steps[lastIndex])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -24,8 +24,7 @@ func (this *generator) generateExpression (expression entity.Expression) (regist
|
|||||||
// TODO: some of these could stand to know that they have a choice in
|
// TODO: some of these could stand to know that they have a choice in
|
||||||
// the matter.
|
// the matter.
|
||||||
|
|
||||||
switch expression := expression.(type) {
|
switch expression := expression.(type) {// these give us an address
|
||||||
// these give us an address
|
|
||||||
case *entity.Dereference,
|
case *entity.Dereference,
|
||||||
*entity.MemberAccess,
|
*entity.MemberAccess,
|
||||||
*entity.Slice,
|
*entity.Slice,
|
||||||