diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/ValueMapper.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/ValueMapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index 3faea48..0b57c3b 100644 --- a/llvm/lib/Transforms/Utils/ValueMapper.cpp +++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp @@ -410,9 +410,9 @@ Value *Mapper::mapValue(const Value *V) { } else if ((Flags & RF_IgnoreMissingLocals) && isa<LocalAsMetadata>(VAM)) { MappedArgs.push_back(VAM); } else { - // If we cannot map the value, set the argument as undef. + // If we cannot map the value, set the argument as poison. MappedArgs.push_back(ValueAsMetadata::get( - UndefValue::get(VAM->getValue()->getType()))); + PoisonValue::get(VAM->getValue()->getType()))); } } return MetadataAsValue::get(V->getContext(), |