]> granicus.if.org Git - clang/commitdiff
[WebAssembly] Simplify code by avoiding duplicating the default behavior.
authorDan Gohman <dan433584@gmail.com>
Mon, 14 Sep 2015 21:54:32 +0000 (21:54 +0000)
committerDan Gohman <dan433584@gmail.com>
Mon, 14 Sep 2015 21:54:32 +0000 (21:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247623 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index 4e2e6f5f49631c4f919ebbc213abd0ad03720849..201bebf9dbb5ce778af09cbdf1e07708b6541fd5 100644 (file)
@@ -624,7 +624,6 @@ ABIArgInfo WebAssemblyABIInfo::classifyArgumentType(QualType Ty) const {
     // 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.