summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-16 18:05:10 +0000
committerChris Lattner <sabre@nondot.org>2004-10-16 18:05:10 +0000
commitd57b37d1fa935684db71868ece3f2d7e5a1e9e0d (patch)
treeac147f035d15da4530d7e13f409d31b6b06c3798 /llvm
parent08b7d5b0320f382d86ef110f0d9e7ed1054e0cf1 (diff)
downloadbcm5719-llvm-d57b37d1fa935684db71868ece3f2d7e5a1e9e0d.tar.gz
bcm5719-llvm-d57b37d1fa935684db71868ece3f2d7e5a1e9e0d.zip
UndefValue's are constants
llvm-svn: 17034
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Constant.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/Constant.h b/llvm/include/llvm/Constant.h
index c765503736e..789fe702818 100644
--- a/llvm/include/llvm/Constant.h
+++ b/llvm/include/llvm/Constant.h
@@ -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
OpenPOWER on IntegriCloud