From 58fa09947587b091f59a69373392b07709bd30b8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 16 Oct 2004 18:05:10 +0000 Subject: [PATCH] UndefValue's are constants git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17034 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Constant.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h index c765503736e..789fe702818 100644 --- a/include/llvm/Constant.h +++ b/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 -- 2.34.1