From: Dan Gohman Date: Mon, 14 Sep 2015 21:54:32 +0000 (+0000) Subject: [WebAssembly] Simplify code by avoiding duplicating the default behavior. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d93037092238fe2ca0c7dcf5fcf0dc563b81aab0;p=clang [WebAssembly] Simplify code by avoiding duplicating the default behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247623 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 4e2e6f5f49..201bebf9db 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -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.