From 9c4ac5f26cca8d0c9635d5d38c5c0f5cb277f71f Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 23 Sep 2016 22:22:34 +0000 Subject: [PATCH] Combine two StringSwitch::Cases because Cases now can take 6 parameters. llvm-svn: 282307 --- lld/ELF/LinkerScript.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index b7c65eda91b8..0fb8c2c9453e 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -1086,8 +1086,7 @@ static int precedence(StringRef Op) { .Cases("*", "/", 5) .Cases("+", "-", 4) .Cases("<<", ">>", 3) - .Cases("<", "<=", ">", ">=", 2) // Cases takes up to four cases. - .Cases("==", "!=", 2) + .Cases("<", "<=", ">", ">=", "==", "!=", 2) .Cases("&", "|", 1) .Default(-1); }