diff --git a/llvm/utils/TableGen/CodeGenWrappers.cpp b/llvm/utils/TableGen/CodeGenWrappers.cpp index 61c3abc29711a3079d914ce7035a4a18caef81c5..d1e0e87ab9ca1722301573b41fcd09249381b432 100644 --- a/llvm/utils/TableGen/CodeGenWrappers.cpp +++ b/llvm/utils/TableGen/CodeGenWrappers.cpp @@ -61,7 +61,7 @@ std::ostream &operator<<(std::ostream &OS, MVT::ValueType T) { /// getTarget - Return the current instance of the Target class. /// -CodeGenTarget::CodeGenTarget() { +CodeGenTarget::CodeGenTarget() : PointerType(MVT::Other) { std::vector Targets = Records.getAllDerivedDefinitions("Target"); if (Targets.size() != 1) throw std::string("ERROR: Multiple subclasses of Target defined!");