diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-01 23:17:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-01 23:17:11 +0000 |
commit | 3805dea3fe742002f32a945abb19b74e2bb576d9 (patch) | |
tree | 68d8c6247e574d520153c195da61ccea9359b5bc /lib/Transforms/Utils/ValueMapper.cpp | |
parent | c3837d49178c2d3f8e80347f93f4859d46175cc0 (diff) |
add valuemapper support for inline asm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27332 91177308-0d34-0410-b5e6-96231b3b80d8
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))) { |