diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-16 18:05:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-16 18:05:10 +0000 |
commit | 58fa09947587b091f59a69373392b07709bd30b8 (patch) | |
tree | fb4b3eb5f332e0d05542833e67b33b1fe99f9bdb /include/llvm | |
parent | 35eca58d7a211523d0dbdcfeec3eaa3aab71fa75 (diff) | |
download | external_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')
-rw-r--r-- | include/llvm/Constant.h | 3 |
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 |