mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
Inline the allocPrecise binding.
This commit is contained in:
parent
f18f63019a
commit
1aff7df28a
@ -74,9 +74,7 @@ instance (Monad m, MonadEvaluator t v m, LocationFor v ~ Precise) => MonadAddres
|
||||
uninitializedAddress :: MonadFail m => m a
|
||||
uninitializedAddress = fail "uninitialized address"
|
||||
|
||||
alloc _ = fmap allocPrecise getStore
|
||||
where allocPrecise :: Store Precise a -> Address Precise a
|
||||
allocPrecise = Address . Precise . storeSize
|
||||
alloc _ = fmap (Address . Precise . storeSize) getStore
|
||||
|
||||
|
||||
-- | 'Monovariant' locations 'alloc'ate one 'Address' per unique variable name, and 'deref'erence once per stored value, nondeterministically.
|
||||
|
Loading…
Reference in New Issue
Block a user