TableGen: allow use of uint64_t for available features mask.
[oota-llvm.git] / lib / MC / MCParser / COFFAsmParser.cpp
index 5ecf9e5c64bc1332c6034de8ae05c8cd13c26c60..6f82e6ef3e455d4ab707d413af0765c94bcfd2d7 100644 (file)
@@ -364,6 +364,10 @@ bool COFFAsmParser::ParseDirectiveSection(StringRef, SMLoc) {
 
     Flags |= COFF::IMAGE_SCN_LNK_COMDAT;
 
+    if (!getLexer().is(AsmToken::Identifier))
+      return TokError("expected comdat type such as 'discard' or 'largest' "
+                      "after protection bits");
+
     if (parseCOMDATType(Type))
       return true;