From: Daniel Sanders Date: Fri, 24 Feb 2017 14:53:35 +0000 (+0000) Subject: Fix missing call to base class constructor in r296121. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3af299d4f0c079c27a1d717dc4f55dc85668eb0;p=llvm Fix missing call to base class constructor in r296121. The 'Kind' member used in RTTI for InstructionPredicateMatcher was not initialized but went undetected since I always ended up with the correct value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296126 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/GlobalISelEmitter.cpp b/utils/TableGen/GlobalISelEmitter.cpp index fe799217bee..37fa5738fdd 100644 --- a/utils/TableGen/GlobalISelEmitter.cpp +++ b/utils/TableGen/GlobalISelEmitter.cpp @@ -277,6 +277,7 @@ protected: PredicateKind Kind; public: + InstructionPredicateMatcher(PredicateKind Kind) : Kind(Kind) {} virtual ~InstructionPredicateMatcher() {} PredicateKind getKind() const { return Kind; } @@ -300,7 +301,8 @@ protected: const CodeGenInstruction *I; public: - InstructionOpcodeMatcher(const CodeGenInstruction *I) : I(I) {} + InstructionOpcodeMatcher(const CodeGenInstruction *I) + : InstructionPredicateMatcher(IPM_Opcode), I(I) {} static bool classof(const InstructionPredicateMatcher *P) { return P->getKind() == IPM_Opcode;