Report errors about labels in macros.

This commit is contained in:
achan1989 2019-04-27 14:01:52 +01:00
parent 49c2010b63
commit 1140061529

View file

@ -1537,7 +1537,7 @@ public class SleighCompile extends SleighBase {
entry("buildMacro", sym, rtl); entry("buildMacro", sym, rtl);
String errstring = checkSymbols(symtab.getCurrentScope()); String errstring = checkSymbols(symtab.getCurrentScope());
if (errstring.length() != 0) { if (errstring.length() != 0) {
reportError(sym.getLocation(), " in definition of macro " + sym.getName() + ":"); reportError(sym.getLocation(), " in definition of macro " + sym.getName() + ":" + errstring);
return; return;
} }
if (!expandMacros(rtl)) { if (!expandMacros(rtl)) {