]> granicus.if.org Git - llvm/commitdiff
Fix Wmismatched-tags warning.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 29 Sep 2017 11:42:05 +0000 (11:42 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 29 Sep 2017 11:42:05 +0000 (11:42 +0000)
InlineAsmIdentifierInfo was declared a class in some places and a class in others.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314508 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCParser/MCAsmParser.h

index dcaf974356bb96556f66a4a2c48ff87d0f6d4c67..8fa5f94d1fd88a85e9a2f456ccd6d093b97d7428 100644 (file)
@@ -34,7 +34,8 @@ class MCStreamer;
 class MCTargetAsmParser;
 class SourceMgr;
 
-struct InlineAsmIdentifierInfo {
+class InlineAsmIdentifierInfo {
+public:
   enum IdKind {
     IK_Invalid,  // Initial state. Unexpected after a successful parsing.
     IK_Label,    // Function/Label reference.
@@ -85,6 +86,7 @@ struct InlineAsmIdentifierInfo {
     Var.Length = size / type;
   }
   InlineAsmIdentifierInfo() : Kind(IK_Invalid) {}
+
 private:
   // Discrimint using the current kind
   IdKind Kind;