From: Eric Christopher Date: Thu, 27 May 2010 00:52:31 +0000 (+0000) Subject: Rearrange conditionals so we don't get caught with the correct type as wrong. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=aeed4d81a8823bba260d2d6d1ff597e5e86c38ed;p=oota-llvm.git Rearrange conditionals so we don't get caught with the correct type as wrong. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104793 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp index 1de22c46ceb..3207e99777a 100644 --- a/lib/MC/MachObjectWriter.cpp +++ b/lib/MC/MachObjectWriter.cpp @@ -612,10 +612,10 @@ public: Type = RIT_X86_64_GOTLoad; else Type = RIT_X86_64_GOT; - } else if (Modifier != MCSymbolRefExpr::VK_None) { - report_fatal_error("unsupported symbol modifier in relocation"); - } else if (Modifier == MCSymbolRefExpr::VK_TLVP) { + } else if (Modifier == MCSymbolRefExpr::VK_TLVP) { Type = RIT_X86_64_TLV; + } else if (Modifier != MCSymbolRefExpr::VK_None) { + report_fatal_error("unsupported symbol modifier in relocation"); } else { Type = RIT_X86_64_Signed;