forked from OSchip/llvm-project
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. llvm-svn: 296126
This commit is contained in:
parent
aa20881749
commit
8d4d72f16b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue