Implement imported mutable globals

This commit is contained in:
Jef
2019-03-20 10:57:55 +01:00
parent e4752aae3d
commit 6b8ff11854
2 changed files with 35 additions and 10 deletions

View File

@@ -320,8 +320,6 @@ where
) {
(Some(Left(ref cc)), ref mut other @ None)
| (ref mut other @ None, Some(Left(ref cc))) => {
// TODO: This doesn't handle the difference in parameters - we need a unified
// CC type where each element can be either a `CCLoc` or a `ValueLocation`
assert_eq!(then.to_drop, else_.to_drop);
**other = Some(Left(cc.clone()));