UndefValue's are constants

llvm-svn: 17034
This commit is contained in:
Chris Lattner 2004-10-16 18:05:10 +00:00
parent c398679263
commit 56508557cf

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