diff options
| author | Daniel Sanders <daniel_l_sanders@apple.com> | 2017-02-24 14:53:35 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2017-02-24 14:53:35 +0000 |
| commit | 8d4d72f16b180397914dfd9505ce691be349c11a (patch) | |
| tree | ec587f197f485b419d215f9a02b310eda56e3216 /llvm/utils | |
| parent | aa208817498b0190806208b08b952a9d76223159 (diff) | |
| download | bcm5719-llvm-8d4d72f16b180397914dfd9505ce691be349c11a.tar.gz bcm5719-llvm-8d4d72f16b180397914dfd9505ce691be349c11a.zip | |
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
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/TableGen/GlobalISelEmitter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/GlobalISelEmitter.cpp b/llvm/utils/TableGen/GlobalISelEmitter.cpp index fe799217bee..37fa5738fdd 100644 --- a/llvm/utils/TableGen/GlobalISelEmitter.cpp +++ b/llvm/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; |

