forked from OSchip/llvm-project
parent
dc72c17798
commit
1b2436a624
|
@ -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))) {
|
||||
|
|
Loading…
Reference in New Issue