summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-27 02:18:21 +0000
committerChris Lattner <sabre@nondot.org>2010-01-27 02:18:21 +0000
commit318b489d5bc49ebc8354982089c78d4fbe5f2953 (patch)
treee4c74a3f14941ee21e1ad7b2b6f2e6ed1ee46e0a /llvm/lib/Linker/LinkModules.cpp
parent65f4733b7736b9087c6670e002ba2124e97709ed (diff)
downloadbcm5719-llvm-318b489d5bc49ebc8354982089c78d4fbe5f2953.tar.gz
bcm5719-llvm-318b489d5bc49ebc8354982089c78d4fbe5f2953.zip
merge two ifs
llvm-svn: 94650
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index ac11450dc34..86f3b84f1d7 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud