aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Linker
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Linker')
-rw-r--r--lib/Linker/LinkModules.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
index ac11450..86f3b84 100644
--- a/lib/Linker/LinkModules.cpp
+++ b/lib/Linker/LinkModules.cpp
@@ -404,9 +404,7 @@ static Value *RemapOperand(const Value *In,
} else {
Result = const_cast<Value*>(In);
}
- } else if (isa<MDString>(In)) {
- Result = const_cast<Value*>(In);
- } else if (isa<InlineAsm>(In)) {
+ } else if (isa<MDString>(In) || isa<InlineAsm>(In)) {
Result = const_cast<Value*>(In);
}