summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-23 16:57:00 +0000
committerDan Gohman <gohman@apple.com>2008-05-23 16:57:00 +0000
commit0f731017dd0b4759fc214b02078b1aee7b537a1c (patch)
treea4b3bdb2b9a23c495b5888a747a10328f552de39 /llvm/lib
parentf52b23c0eb6c7f3df6e2e80c0b49d3b4a86cb444 (diff)
downloadbcm5719-llvm-0f731017dd0b4759fc214b02078b1aee7b537a1c.tar.gz
bcm5719-llvm-0f731017dd0b4759fc214b02078b1aee7b537a1c.zip
Fix another isFirstClassType that now needs to be isSingleValueType.
This fixes recent CBE regressions. llvm-svn: 51483
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/CBackend/CBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp
index 4473af1ee6c..251b9f98c04 100644
--- a/llvm/lib/Target/CBackend/CBackend.cpp
+++ b/llvm/lib/Target/CBackend/CBackend.cpp
@@ -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*/";
OpenPOWER on IntegriCloud