Fix another isFirstClassType that now needs to be isSingleValueType.
authorDan Gohman <gohman@apple.com>
Fri, 23 May 2008 16:57:00 +0000 (16:57 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 23 May 2008 16:57:00 +0000 (16:57 +0000)
This fixes recent CBE regressions.

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

lib/Target/CBackend/CBackend.cpp

index 4473af1ee6c1082e833e07b18cb7242be4fe02d0..251b9f98c0440a78ec7b2f3801fccf7ec60e4120 100644 (file)
@@ -913,7 +913,7 @@ void CWriter::printConstant(Constant *CPV) {
            << *CE << "\n";
       abort();
     }
-  } else if (isa<UndefValue>(CPV) && CPV->getType()->isFirstClassType()) {
+  } else if (isa<UndefValue>(CPV) && CPV->getType()->isSingleValueType()) {
     Out << "((";
     printType(Out, CPV->getType()); // sign doesn't matter
     Out << ")/*UNDEF*/";