Fix the fix of revision 59974. Now array-struct.c passes too.

llvm-svn: 59975
This commit is contained in:
Sebastian Redl
2008-11-24 19:39:40 +00:00
parent 81c1e1306c
commit f7cb84d771

View File

@@ -262,6 +262,7 @@ SVal RegionStoreManager::getLValueElement(const GRState* St,
if (CI2->getValue().isUnsigned() ||
CI2->getValue().getBitWidth() < CI1->getValue().getBitWidth()) {
llvm::APSInt SI = CI2->getValue();
if (CI2->getValue().getBitWidth() < CI1->getValue().getBitWidth())
SI.extend(CI1->getValue().getBitWidth());
SI.setIsSigned(true);
SignedInt = nonloc::ConcreteInt(getBasicVals().getValue(SI));