Fix regression from AST checkin that caused perf. warnings to be issued for stdlib code.

This commit is contained in:
Matt Pharr
2011-10-06 19:42:18 -07:00
parent 53dd65fa2e
commit 4a2cbf2c4e
2 changed files with 1 additions and 4 deletions

View File

@@ -295,7 +295,7 @@ Warning(SourcePos p, const char *fmt, ...) {
void
PerformanceWarning(SourcePos p, const char *fmt, ...) {
if (!g->emitPerfWarnings)
if (!g->emitPerfWarnings || strcmp(p.name, "stdlib.ispc") == 0)
return;
va_list args;