mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
Use isSingleValueType instead of isFirstClassType to
exclude struct and array types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
890c31cfcc
commit
b64aa119d8
@ -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…
x
Reference in New Issue
Block a user