Added explanation for commit 9b80037.

Such uncommented changes to the frontend are potentially a huge
source of confusion during merging new frontend versions
(especially if the piece of code gets changed again before the
next upstream release).
This commit is contained in:
David Nadlinger
2012-10-13 18:20:56 +02:00
parent a9e151ee1f
commit d523be3010

View File

@@ -5111,6 +5111,9 @@ Statement *ThrowStatement::semantic(Scope *sc)
int ThrowStatement::blockExit(bool mustNotThrow)
{
#if IN_LLVM
// Back-port of DMD commit d77b7c2b to allow usering Phobos from Git master
// for its many Win64 fixes. To be dropped during the 2.061 merge.
if (mustNotThrow)
{
ClassDeclaration *cd = exp->type->toBasetype()->isClassHandle();
@@ -5123,6 +5126,11 @@ int ThrowStatement::blockExit(bool mustNotThrow)
error("%s is thrown but not caught", exp->type->toChars());
}
return BEthrow;
#else
if (mustNotThrow)
error("%s is thrown but not caught", exp->type->toChars());
return BEthrow; // obviously
#endif
}