projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
214142c
)
Fix another isFirstClassType that now needs to be isSingleValueType.
author
Dan Gohman
<gohman@apple.com>
Fri, 23 May 2008 16:57:00 +0000
(16:57 +0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/lib/Target/CBackend/CBackend.cpp
b/lib/Target/CBackend/CBackend.cpp
index 4473af1ee6c1082e833e07b18cb7242be4fe02d0..251b9f98c0440a78ec7b2f3801fccf7ec60e4120 100644
(file)
--- 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()->is
FirstClass
Type()) {
+ } else if (isa<UndefValue>(CPV) && CPV->getType()->is
SingleValue
Type()) {
Out << "((";
printType(Out, CPV->getType()); // sign doesn't matter
Out << ")/*UNDEF*/";