diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-06-05 10:04:05 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-06-05 10:04:05 +0000 |
| commit | db134aaec24e8a88fdac9b5015e7af8575b5cad6 (patch) | |
| tree | e83cff4be71ed92e731a120bac241bf742de085c | |
| parent | e12334a0f248bd1579af995fb09157a65500400a (diff) | |
| download | bcm5719-llvm-db134aaec24e8a88fdac9b5015e7af8575b5cad6.tar.gz bcm5719-llvm-db134aaec24e8a88fdac9b5015e7af8575b5cad6.zip | |
[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
| -rw-r--r-- | llvm/lib/Transforms/IPO/Attributor.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index d82667be933..2e1bdd667e3 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()) |

