UndefValue's are constants

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-10-16 18:05:10 +00:00
parent 35eca58d7a
commit 58fa099475

View File

@ -69,7 +69,8 @@ public:
V->getValueType() == Value::ConstantExprVal ||
V->getValueType() == Value::ConstantAggregateZeroVal ||
V->getValueType() == Value::FunctionVal ||
V->getValueType() == Value::GlobalVariableVal;
V->getValueType() == Value::GlobalVariableVal ||
V->getValueType() == Value::UndefValueVal;
}
/// replaceUsesOfWithOnConstant - This method is a special form of