aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/CBackend.cpp
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
commit17dab19226545249d2f21c8e9a71be6c3ef5a497 (patch)
tree0be26853b021bffcd20354c3d2f379326608c3ef /lib/Target/CBackend/CBackend.cpp
parent214142cd4f0a3570f62ee376df36fa0bfdd7fe39 (diff)
Fix another isFirstClassType that now needs to be isSingleValueType.
This fixes recent CBE regressions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r--lib/Target/CBackend/CBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 4473af1ee6..251b9f98c0 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/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*/";