Report location on stack too deep if possible

This commit is contained in:
Alex Beregszaszi committed 2017-07-26 22:56:55 +01:00
1 parent a605e4eb95
commit af57879187
2 files changed
+7 -1

No files matched your search

+1
View File
@@ -310,6 +310,7 @@ void CompilerContext::appendInlineAssembly(
if (stackDiff < 1 || stackDiff > 16)
BOOST_THROW_EXCEPTION(
CompilerError() <<
errinfo_sourceLocation(_identifier.location) <<
errinfo_comment("Stack too deep (" + to_string(stackDiff) + "), try removing local variables.")
);
if (_context == julia::IdentifierContext::RValue)