[llvm] r318330 - [X86] Add a return to the end of a switch to prevent an accidental fallthrough in the future.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 15 12:42:47 PST 2017
Author: ctopper
Date: Wed Nov 15 12:42:47 2017
New Revision: 318330
URL: http://llvm.org/viewvc/llvm-project?rev=318330&view=rev
Log:
[X86] Add a return to the end of a switch to prevent an accidental fallthrough in the future.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=318330&r1=318329&r2=318330&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Nov 15 12:42:47 2017
@@ -24900,6 +24900,7 @@ void X86TargetLowering::ReplaceNodeResul
ToVecInt, DAG.getIntPtrConstant(i, dl)));
Results.push_back(DAG.getBuildVector(DstVT, dl, Elts));
+ return;
}
}
}
More information about the llvm-commits
mailing list