diff --git a/llvm/utils/TableGen/TGValueTypes.cpp b/llvm/utils/TableGen/TGValueTypes.cpp index 07400cf7447b..3ac71a49147f 100644 --- a/llvm/utils/TableGen/TGValueTypes.cpp +++ b/llvm/utils/TableGen/TGValueTypes.cpp @@ -47,7 +47,7 @@ public: : Type(TK_ExtendedIntegerType), BitWidth(bits) {} static bool classof(const Type *T) { return T->getKind() == TK_ExtendedIntegerType; - }; + } unsigned getSizeInBits() const { return getBitWidth(); } @@ -64,7 +64,7 @@ public: : Type(TK_ExtendedVectorType), ElementType(elty), NumElements(num) {} static bool classof(const Type *T) { return T->getKind() == TK_ExtendedVectorType; - }; + } unsigned getSizeInBits() const { return getNumElements() * getElementType().getSizeInBits(); }