exclude struct and array types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51452
91177308-0d34-0410-b5e6-
96231b3b80d8
/// 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)));