UndefValue's are constants
authorChris Lattner <sabre@nondot.org>
Sat, 16 Oct 2004 18:05:10 +0000 (18:05 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 16 Oct 2004 18:05:10 +0000 (18:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17034 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constant.h

index c765503736e99a5089629a0cf5e8fa72cc55401b..789fe7028180548a9b748f0bd8248cefc999c31a 100644 (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