aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Constant.h
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
commit58fa09947587b091f59a69373392b07709bd30b8 (patch)
treefb4b3eb5f332e0d05542833e67b33b1fe99f9bdb /include/llvm/Constant.h
parent35eca58d7a211523d0dbdcfeec3eaa3aab71fa75 (diff)
downloadexternal_llvm-58fa09947587b091f59a69373392b07709bd30b8.zip
external_llvm-58fa09947587b091f59a69373392b07709bd30b8.tar.gz
external_llvm-58fa09947587b091f59a69373392b07709bd30b8.tar.bz2
UndefValue's are constants
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constant.h')
-rw-r--r--include/llvm/Constant.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h
index c765503..789fe70 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