[llvm-commits] CVS: llvm/include/llvm/Constant.h

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 16 11:06:21 PDT 2004



Changes in directory llvm/include/llvm:

Constant.h updated: 1.17 -> 1.18
---
Log message:

UndefValue's are constants


---
Diffs of the changes:  (+2 -1)

Index: llvm/include/llvm/Constant.h
diff -u llvm/include/llvm/Constant.h:1.17 llvm/include/llvm/Constant.h:1.18
--- llvm/include/llvm/Constant.h:1.17	Tue Aug  3 21:43:00 2004
+++ llvm/include/llvm/Constant.h	Sat Oct 16 13:05:10 2004
@@ -69,7 +69,8 @@
            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






More information about the llvm-commits mailing list