[llvm-commits] [llvm] r94650 - /llvm/trunk/lib/Linker/LinkModules.cpp
Chris Lattner
sabre at nondot.org
Tue Jan 26 18:18:21 PST 2010
Author: lattner
Date: Tue Jan 26 20:18:21 2010
New Revision: 94650
URL: http://llvm.org/viewvc/llvm-project?rev=94650&view=rev
Log:
merge two ifs
Modified:
llvm/trunk/lib/Linker/LinkModules.cpp
Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=94650&r1=94649&r2=94650&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Tue Jan 26 20:18:21 2010
@@ -404,9 +404,7 @@
} 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);
}
More information about the llvm-commits
mailing list