diff options
| author | Sylvestre Ledru <sylvestre@debian.org> | 2013-10-06 09:54:18 +0000 |
|---|---|---|
| committer | Sylvestre Ledru <sylvestre@debian.org> | 2013-10-06 09:54:18 +0000 |
| commit | 9a6002a09bd0f920ee370360dfe231eba256b37a (patch) | |
| tree | 0a19829d37731ef2f13398caa22c4215cbaa5028 /lib/CodeGen/TargetInfo.cpp | |
| parent | 2363072da26da25009bf61c3d9d056a028d4d720 (diff) | |
| download | clang-9a6002a09bd0f920ee370360dfe231eba256b37a.tar.gz clang-9a6002a09bd0f920ee370360dfe231eba256b37a.tar.bz2 clang-9a6002a09bd0f920ee370360dfe231eba256b37a.tar.xz | |
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
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
| -rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
