This seems to work around some unobvious bug in gcc on sparc which was
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 10 Oct 2003 21:55:29 +0000 (21:55 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 10 Oct 2003 21:55:29 +0000 (21:55 +0000)
causing the build of lib/Target/X86 to fail.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9042 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenTarget.cpp
utils/TableGen/CodeGenWrappers.cpp

index 61c3abc29711a3079d914ce7035a4a18caef81c5..d1e0e87ab9ca1722301573b41fcd09249381b432 100644 (file)
@@ -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<Record*> Targets = Records.getAllDerivedDefinitions("Target");
   if (Targets.size() != 1)
     throw std::string("ERROR: Multiple subclasses of Target defined!");
index 61c3abc29711a3079d914ce7035a4a18caef81c5..d1e0e87ab9ca1722301573b41fcd09249381b432 100644 (file)
@@ -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<Record*> Targets = Records.getAllDerivedDefinitions("Target");
   if (Targets.size() != 1)
     throw std::string("ERROR: Multiple subclasses of Target defined!");