mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
Downgraded accepts-invalid workaround error to assertion.
Bug 9268 was fixed in 2.062.
This commit is contained in:
parent
946156742c
commit
7e92984ebe
1 changed files with 1 additions and 5 deletions
|
@ -373,11 +373,7 @@ void DtoAssign(Loc& loc, DValue* lhs, DValue* rhs, int op, bool canSkipPostblit)
|
||||||
Type* t = lhs->getType()->toBasetype();
|
Type* t = lhs->getType()->toBasetype();
|
||||||
Type* t2 = rhs->getType()->toBasetype();
|
Type* t2 = rhs->getType()->toBasetype();
|
||||||
|
|
||||||
if (t->ty == Tvoid) {
|
assert(t->ty != Tvoid && "Cannot assign values of type void.");
|
||||||
// This is a frontend regression in DMD 2.061; should be removed once
|
|
||||||
// DMD Bugzilla issue 9268 is fixed.
|
|
||||||
error(loc, "Cannot assign values of type void.");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (t->ty == Tstruct) {
|
if (t->ty == Tstruct) {
|
||||||
llvm::Value* src = rhs->getRVal();
|
llvm::Value* src = rhs->getRVal();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue