[llvm] fffcd3e - [X86] Add a 'break; ' to the end of the last case in a switch to avoid surprising the next person to add a case after this one. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 12:19:12 PST 2019
Author: Craig Topper
Date: 2019-11-18T12:18:24-08:00
New Revision: fffcd3e48ecf3f66d97c3b4daf624b3b2f9d74bf
URL: https://github.com/llvm/llvm-project/commit/fffcd3e48ecf3f66d97c3b4daf624b3b2f9d74bf
DIFF: https://github.com/llvm/llvm-project/commit/fffcd3e48ecf3f66d97c3b4daf624b3b2f9d74bf.diff
LOG: [X86] Add a 'break;' to the end of the last case in a switch to avoid surprising the next person to add a case after this one. NFC
Added:
Modified:
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index 5b546d42d98a..298bb7d358ea 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -4410,6 +4410,8 @@ void X86DAGToDAGISel::Select(SDNode *Node) {
ReplaceNode(Node, CNode);
return;
}
+
+ break;
}
}
More information about the llvm-commits
mailing list