summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/ValueMapper.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-15 05:55:15 +0000
committerChris Lattner <sabre@nondot.org>2004-02-15 05:55:15 +0000
commit76b2ff4ded1d85efea1d6c1ddcffaa4cd64072b8 (patch)
treeff5ec44177557258085f40bc5d7a24c1626fa422 /llvm/lib/Transforms/Utils/ValueMapper.cpp
parent7bea8084e09827613d5ca4fcb18e90fb2395d0a4 (diff)
downloadbcm5719-llvm-76b2ff4ded1d85efea1d6c1ddcffaa4cd64072b8.tar.gz
bcm5719-llvm-76b2ff4ded1d85efea1d6c1ddcffaa4cd64072b8.zip
Adjustments to support the new ConstantAggregateZero class
llvm-svn: 11474
Diffstat (limited to 'llvm/lib/Transforms/Utils/ValueMapper.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/ValueMapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp
index acc433a6ed2..2cb6a9d221d 100644
--- a/llvm/lib/Transforms/Utils/ValueMapper.cpp
+++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp
@@ -28,7 +28,7 @@ Value *llvm::MapValue(const Value *V, std::map<const Value*, Value*> &VM) {
if (Constant *C = const_cast<Constant*>(dyn_cast<Constant>(V))) {
if (isa<ConstantIntegral>(C) || isa<ConstantFP>(C) ||
- isa<ConstantPointerNull>(C))
+ isa<ConstantPointerNull>(C) || isa<ConstantAggregateZero>(C))
return VMSlot = C; // Primitive constants map directly
else if (ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(C)) {
GlobalValue *MV = cast<GlobalValue>(MapValue((Value*)CPR->getValue(),VM));
OpenPOWER on IntegriCloud