r247623 - [WebAssembly] Simplify code by avoiding duplicating the default behavior.

Dan Gohman via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 14 14:54:32 PDT 2015


Author: djg
Date: Mon Sep 14 16:54:32 2015
New Revision: 247623

URL: http://llvm.org/viewvc/llvm-project?rev=247623&view=rev
Log:
[WebAssembly] Simplify code by avoiding duplicating the default behavior.

Modified:
    cfe/trunk/lib/CodeGen/TargetInfo.cpp

Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=247623&r1=247622&r2=247623&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Mon Sep 14 16:54:32 2015
@@ -624,7 +624,6 @@ ABIArgInfo WebAssemblyABIInfo::classifyA
     // though watch out for things like bitfields.
     if (const Type *SeltTy = isSingleElementStruct(Ty, getContext()))
       return ABIArgInfo::getDirect(CGT.ConvertType(QualType(SeltTy, 0)));
-    return getNaturalAlignIndirect(Ty);
   }
 
   // Otherwise just do the default thing.




More information about the cfe-commits mailing list