projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3511c70
)
merge two ifs
author
Chris Lattner
<sabre@nondot.org>
Wed, 27 Jan 2010 02:18:21 +0000
(
02:18
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 27 Jan 2010 02:18:21 +0000
(
02:18
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94650
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Linker/LinkModules.cpp
patch
|
blob
|
history
diff --git
a/lib/Linker/LinkModules.cpp
b/lib/Linker/LinkModules.cpp
index ac11450dc3415d2d79493e8c4d42de58522ff03e..86f3b84f1d767b25c69939f8031d8a5916554548 100644
(file)
--- 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);
}