UndefValue's are constants

llvm-svn: 17034
This commit is contained in:
Chris Lattner 2004-10-16 18:05:10 +00:00
parent 08b7d5b032
commit d57b37d1fa
1 changed files with 2 additions and 1 deletions

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