diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-23 16:57:00 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-23 16:57:00 +0000 |
commit | 76c2cb4e44ee4e83df6c46248126f1e611d3f7a6 (patch) | |
tree | 0be26853b021bffcd20354c3d2f379326608c3ef /lib/Target | |
parent | a136c99a896a4962b63621a052942a4c41f424c4 (diff) | |
download | external_llvm-76c2cb4e44ee4e83df6c46248126f1e611d3f7a6.zip external_llvm-76c2cb4e44ee4e83df6c46248126f1e611d3f7a6.tar.gz external_llvm-76c2cb4e44ee4e83df6c46248126f1e611d3f7a6.tar.bz2 |
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')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 4473af1..251b9f9 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*/"; |