From: Sylvestre Ledru Date: Sun, 6 Oct 2013 09:54:18 +0000 (+0000) Subject: remove a dead assignment. The variables are set just right after. Found by scan-build... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a6002a09bd0f920ee370360dfe231eba256b37a;p=clang remove a dead assignment. The variables are set just right after. Found by scan-build http://buildd-clang.debian.net/scan-build/ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192061 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 115593a656..9ad17a454e 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -1695,7 +1695,7 @@ void X86_64ABIInfo::classify(QualType Ty, uint64_t OffsetBase, uint64_t EB_Lo = Offset / 64; uint64_t EB_Hi = (Offset + Size - 1) / 64; - FieldLo = FieldHi = NoClass; + if (EB_Lo) { assert(EB_Hi == EB_Lo && "Invalid classification, type > 16 bytes."); FieldLo = NoClass;