Index: lib/Object/COFFModuleDefinition.cpp =================================================================== --- lib/Object/COFFModuleDefinition.cpp +++ lib/Object/COFFModuleDefinition.cpp @@ -250,7 +250,10 @@ for (;;) { read(); if (Tok.K == Identifier && Tok.Value[0] == '@') { - if (Tok.Value.drop_front().getAsInteger(10, E.Ordinal)) { + if (Tok.Value == "@") { + read(); + Tok.Value.getAsInteger(10, E.Ordinal); + } else if (Tok.Value.drop_front().getAsInteger(10, E.Ordinal)) { // Not an ordinal modifier at all, but the next export (fastcall // decorated) - complete the current one. unget();