From 3805dea3fe742002f32a945abb19b74e2bb576d9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 1 Apr 2006 23:17:11 +0000 Subject: [PATCH] add valuemapper support for inline asm git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27332 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/ValueMapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index 6db9ed55de2..f1724db1d47 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 &VM) { // Global values do not need to be seeded into the ValueMap if they are using // the identity mapping. - if (isa(V)) + if (isa(V) || isa(V)) return VMSlot = const_cast(V); if (Constant *C = const_cast(dyn_cast(V))) {