add valuemapper support for inline asm

llvm-svn: 27332
This commit is contained in:
Chris Lattner 2006-04-01 23:17:11 +00:00
parent dc72c17798
commit 1b2436a624
1 changed files with 1 additions and 1 deletions

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))) {