Use isSingleValueType instead of isFirstClassType to
exclude struct and array types. llvm-svn: 51452
This commit is contained in:
parent
4c290c7c0b
commit
8830714bff
|
@ -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)));
|
||||
|
|
Loading…
Reference in New Issue