Add error checks for AllocationAdapters being used in unsupported ways.

Change-Id: If6506e04d65a7b3d79203ac7a20a7961368ef04f
2 files changed