add valuemapper support for inline asm
authorChris Lattner <sabre@nondot.org>
Sat, 1 Apr 2006 23:17:11 +0000 (23:17 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 1 Apr 2006 23:17:11 +0000 (23:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27332 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/ValueMapper.cpp

index 6db9ed55de295d0e20fc4d09861df814b3eec137..f1724db1d4773f36ac034f62333ab370cd55a9ea 100644 (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))) {