Fix issue 97 - <<= broken for LDC 1.

This code path was introduced in the 1.074 merge.
This commit is contained in:
David Nadlinger
2012-05-25 15:54:42 +02:00
parent ced3702a9f
commit 1805e534b2

View File

@@ -5497,7 +5497,11 @@ Expression *BinAssignExp::semantic(Scope *sc)
typeCombine(sc);
e1->checkIntegral();
e2 = e2->checkIntegral();
#if !IN_LLVM
e2 = e2->castTo(sc, Type::tshiftcnt);
#else
e2 = e2->castTo(sc, e1->type);
#endif
return this;
}