summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-10-10 21:55:29 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-10-10 21:55:29 +0000
commit969378468ef803a90f4025da22c21030509b63fb (patch)
tree46a1a87af2d6dec058c962eac838f614d536b943 /llvm
parentc751a493afa0253343a41d69b75c8590942066ae (diff)
downloadbcm5719-llvm-969378468ef803a90f4025da22c21030509b63fb.tar.gz
bcm5719-llvm-969378468ef803a90f4025da22c21030509b63fb.zip
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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/utils/TableGen/CodeGenWrappers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenWrappers.cpp b/llvm/utils/TableGen/CodeGenWrappers.cpp
index 61c3abc2971..d1e0e87ab9c 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<Record*> Targets = Records.getAllDerivedDefinitions("Target");
if (Targets.size() != 1)
throw std::string("ERROR: Multiple subclasses of Target defined!");
OpenPOWER on IntegriCloud