add valuemapper support for inline asm

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27332 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-04-01 23:17:11 +00:00
parent c3837d4917
commit 3805dea3fe

View File

@ -24,7 +24,7 @@ Value *llvm::MapValue(const Value *V, std::map<const Value*, Value*> &VM) {
// Global values do not need to be seeded into the ValueMap if they are using
// the identity mapping.
if (isa<GlobalValue>(V))
if (isa<GlobalValue>(V) || isa<InlineAsm>(V))
return VMSlot = const_cast<Value*>(V);
if (Constant *C = const_cast<Constant*>(dyn_cast<Constant>(V))) {