Fix panic in builds with no device

am: 20e1365e61

Change-Id: I401d080aaf27ed598c44628edcd7d249a0298a82
This commit is contained in:
Colin Cross 2017-06-23 20:22:35 +00:00 committed by android-build-merger
commit 414e59cb8b

View file

@ -466,7 +466,11 @@ func (c *config) LibartImgHostBaseAddress() string {
} }
func (c *config) LibartImgDeviceBaseAddress() string { func (c *config) LibartImgDeviceBaseAddress() string {
switch c.Targets[Device][0].Arch.ArchType { archType := Common
if len(c.Targets[Device]) > 0 {
archType = c.Targets[Device][0].Arch.ArchType
}
switch archType {
default: default:
return "0x70000000" return "0x70000000"
case Mips, Mips64: case Mips, Mips64: