From db134aaec24e8a88fdac9b5015e7af8575b5cad6 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. llvm-svn: 362592 --- llvm/lib/Transforms/IPO/Attributor.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index d82667b..2e1bdd6 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/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.7.4