[llvm-commits] CVS: llvm/lib/Transforms/Utils/ValueMapper.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Oct 16 11:10:42 PDT 2004
Changes in directory llvm/lib/Transforms/Utils:
ValueMapper.cpp updated: 1.18 -> 1.19
---
Log message:
Add support for UndefValue
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/Transforms/Utils/ValueMapper.cpp
diff -u llvm/lib/Transforms/Utils/ValueMapper.cpp:1.18 llvm/lib/Transforms/Utils/ValueMapper.cpp:1.19
--- llvm/lib/Transforms/Utils/ValueMapper.cpp:1.18 Thu Aug 12 21:43:19 2004
+++ llvm/lib/Transforms/Utils/ValueMapper.cpp Sat Oct 16 13:10:31 2004
@@ -31,7 +31,8 @@
if (Constant *C = const_cast<Constant*>(dyn_cast<Constant>(V))) {
if (isa<ConstantIntegral>(C) || isa<ConstantFP>(C) ||
- isa<ConstantPointerNull>(C) || isa<ConstantAggregateZero>(C))
+ isa<ConstantPointerNull>(C) || isa<ConstantAggregateZero>(C) ||
+ isa<UndefValue>(C))
return VMSlot = C; // Primitive constants map directly
else if (ConstantArray *CA = dyn_cast<ConstantArray>(C)) {
for (unsigned i = 0, e = CA->getNumOperands(); i != e; ++i) {
More information about the llvm-commits
mailing list