From 969378468ef803a90f4025da22c21030509b63fb Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Fri, 10 Oct 2003 21:55:29 +0000 Subject: [PATCH] This seems to work around some unobvious bug in gcc on sparc which was causing the build of lib/Target/X86 to fail. llvm-svn: 9042 --- llvm/utils/TableGen/CodeGenWrappers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/TableGen/CodeGenWrappers.cpp b/llvm/utils/TableGen/CodeGenWrappers.cpp index 61c3abc29711..d1e0e87ab9ca 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!"); -- GitLab