[llvm] r254729 - [WebAssembly] clang-format CallingConvSupported. NFC.

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 4 09:18:32 PST 2015


Author: djg
Date: Fri Dec  4 11:18:32 2015
New Revision: 254729

URL: http://llvm.org/viewvc/llvm-project?rev=254729&view=rev
Log:
[WebAssembly] clang-format CallingConvSupported. NFC.

Modified:
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp?rev=254729&r1=254728&r2=254729&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp Fri Dec  4 11:18:32 2015
@@ -258,12 +258,10 @@ static void fail(SDLoc DL, SelectionDAG
 }
 
 // Test whether the given calling convention is supported.
-static bool
-CallingConvSupported(CallingConv::ID CallConv) {
+static bool CallingConvSupported(CallingConv::ID CallConv) {
   // We currently support the language-independent target-independent
   // conventions.
-  return CallConv == CallingConv::C ||
-         CallConv == CallingConv::Fast ||
+  return CallConv == CallingConv::C || CallConv == CallingConv::Fast ||
          CallConv == CallingConv::Cold;
 }
 




More information about the llvm-commits mailing list