r192061 - remove a dead assignment. The variables are set just right after. Found by scan-build http://buildd-clang.debian.net/scan-build/
Sylvestre Ledru
sylvestre at debian.org
Sun Oct 6 02:54:18 PDT 2013
Author: sylvestre
Date: Sun Oct 6 04:54:18 2013
New Revision: 192061
URL: http://llvm.org/viewvc/llvm-project?rev=192061&view=rev
Log:
remove a dead assignment. The variables are set just right after. Found by scan-build http://buildd-clang.debian.net/scan-build/
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=192061&r1=192060&r2=192061&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Sun Oct 6 04:54:18 2013
@@ -1695,7 +1695,7 @@ void X86_64ABIInfo::classify(QualType Ty
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;
More information about the cfe-commits
mailing list