Use isSingleValueType instead of isFirstClassType to

exclude struct and array types.

llvm-svn: 51452
This commit is contained in:
Dan Gohman 2008-05-22 23:43:22 +00:00
parent 4c290c7c0b
commit 8830714bff
1 changed files with 1 additions and 1 deletions

View File

@ -863,7 +863,7 @@ unsigned Andersens::getNodeForConstantPointerTarget(Constant *C) {
/// object N, which contains values indicated by C.
void Andersens::AddGlobalInitializerConstraints(unsigned NodeIndex,
Constant *C) {
if (C->getType()->isFirstClassType()) {
if (C->getType()->isSingleValueType()) {
if (isa<PointerType>(C->getType()))
Constraints.push_back(Constraint(Constraint::Copy, NodeIndex,
getNodeForConstantPointer(C)));