From: Chris Lattner Date: Sat, 16 Oct 2004 18:10:31 +0000 (+0000) Subject: Add support for UndefValue X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=82731c793a9fbe53d8c5e784e3638cd3ad09d5ca;p=oota-llvm.git Add support for UndefValue git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17046 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index d7507f9f07f..299a093364c 100644 --- a/lib/Transforms/Utils/ValueMapper.cpp +++ b/lib/Transforms/Utils/ValueMapper.cpp @@ -31,7 +31,8 @@ Value *llvm::MapValue(const Value *V, std::map &VM) { if (Constant *C = const_cast(dyn_cast(V))) { if (isa(C) || isa(C) || - isa(C) || isa(C)) + isa(C) || isa(C) || + isa(C)) return VMSlot = C; // Primitive constants map directly else if (ConstantArray *CA = dyn_cast(C)) { for (unsigned i = 0, e = CA->getNumOperands(); i != e; ++i) {