diff options
Diffstat (limited to 'lib/Transforms/Utils/ValueMapper.cpp')
-rw-r--r-- | lib/Transforms/Utils/ValueMapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index 6db9ed55de..f1724db1d4 100644 --- a/lib/Transforms/Utils/ValueMapper.cpp +++ b/lib/Transforms/Utils/ValueMapper.cpp @@ -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))) { |