From 7e97c400ef8a2ea120f588c04158d2ba9a65714b Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 5 Jun 2019 10:04:05 +0000 Subject: [PATCH] [IPO] Disabled 'default only' switch statements to fix MSVC warnings. @jdoerfert Looks like these are placeholders for incoming abstract attributes patches so I've just commented the code out, even though this is usually frowned upon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362592 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/Attributor.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Transforms/IPO/Attributor.cpp b/lib/Transforms/IPO/Attributor.cpp index d82667be933..2e1bdd667e3 100644 --- a/lib/Transforms/IPO/Attributor.cpp +++ b/lib/Transforms/IPO/Attributor.cpp @@ -86,10 +86,10 @@ static void bookkeeping(AbstractAttribute::ManifestPosition MP, if (!Attr.isEnumAttribute()) return; - switch (Attr.getKindAsEnum()) { - default: - return; - } + //switch (Attr.getKindAsEnum()) { + //default: + // return; + //} } /// Helper to identify the correct offset into an attribute list. @@ -397,10 +397,10 @@ void Attributor::identifyDefaultAbstractAttributes( // to concrete attributes we only cache the ones that are as identified in // the following switch. // Note: There are no concrete attributes now so this is initially empty. - switch (I.getOpcode()) { - default: - break; - } + //switch (I.getOpcode()) { + //default: + // break; + //} if (IsInterestingOpcode) InstOpcodeMap[I.getOpcode()].push_back(&I); if (I.mayReadOrWriteMemory()) -- 2.50.1