Skip to content

Commit

Permalink
Fix ilasm parsing of defines (#42002)
Browse files Browse the repository at this point in the history
Regression introduced by #41611

Fixes #42001
  • Loading branch information
jkotas authored Sep 9, 2020
1 parent 2f378cb commit ded9f9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/coreclr/src/ilasm/grammar_after.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -924,10 +924,6 @@ int yylex()
tok = parse_literal(curSym, curPos, FALSE);
if(tok == QSTRING)
{
// insert UTF-8 BOM prefix
yylval.binstr->insertInt8(0xEF);
yylval.binstr->insertInt8(0xBB);
yylval.binstr->insertInt8(0xBF);
yylval.binstr->appendInt8(' ');
DefineVar(newstr, yylval.binstr);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern System.Runtime {}
#define CORE_ASSEMBLY "System.Runtime"

.assembly extern CORE_ASSEMBLY {}
.assembly MiAggressiveOptimization {}
.module MiAggressiveOptimization.dll
// MVID: {B5A4E68E-19B7-4FA3-9BE2-2A0B7265233B}

.class public abstract auto ansi sealed beforefieldinit Program
extends [System.Runtime]System.Object
extends [CORE_ASSEMBLY]System.Object
{
.method public hidebysig static void Main() cil managed aggressiveoptimization
{
Expand Down

0 comments on commit ded9f9d

Please sign in to comment.