From 0a65a1441731c5fcf08647e95c9802844da68514 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 27 Jan 2010 02:18:21 +0000 Subject: [PATCH] merge two ifs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94650 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Linker/LinkModules.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index ac11450dc34..86f3b84f1d7 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(In); } - } else if (isa(In)) { - Result = const_cast(In); - } else if (isa(In)) { + } else if (isa(In) || isa(In)) { Result = const_cast(In); } -- 2.11.0