[llvm-commits] [llvm] r51452 - /llvm/trunk/lib/Analysis/IPA/Andersens.cpp
Dan Gohman
gohman at apple.com
Thu May 22 16:43:22 PDT 2008
Author: djg
Date: Thu May 22 18:43:22 2008
New Revision: 51452
URL: http://llvm.org/viewvc/llvm-project?rev=51452&view=rev
Log:
Use isSingleValueType instead of isFirstClassType to
exclude struct and array types.
Modified:
llvm/trunk/lib/Analysis/IPA/Andersens.cpp
Modified: llvm/trunk/lib/Analysis/IPA/Andersens.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IPA/Andersens.cpp?rev=51452&r1=51451&r2=51452&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IPA/Andersens.cpp (original)
+++ llvm/trunk/lib/Analysis/IPA/Andersens.cpp Thu May 22 18:43:22 2008
@@ -863,7 +863,7 @@
/// 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)));
More information about the llvm-commits
mailing list