Fix the fix of revision 59974. Now array-struct.c passes too.
llvm-svn: 59975
This commit is contained in:
@@ -262,7 +262,8 @@ SVal RegionStoreManager::getLValueElement(const GRState* St,
|
|||||||
if (CI2->getValue().isUnsigned() ||
|
if (CI2->getValue().isUnsigned() ||
|
||||||
CI2->getValue().getBitWidth() < CI1->getValue().getBitWidth()) {
|
CI2->getValue().getBitWidth() < CI1->getValue().getBitWidth()) {
|
||||||
llvm::APSInt SI = CI2->getValue();
|
llvm::APSInt SI = CI2->getValue();
|
||||||
SI.extend(CI1->getValue().getBitWidth());
|
if (CI2->getValue().getBitWidth() < CI1->getValue().getBitWidth())
|
||||||
|
SI.extend(CI1->getValue().getBitWidth());
|
||||||
SI.setIsSigned(true);
|
SI.setIsSigned(true);
|
||||||
SignedInt = nonloc::ConcreteInt(getBasicVals().getValue(SI));
|
SignedInt = nonloc::ConcreteInt(getBasicVals().getValue(SI));
|
||||||
CI2 = cast<nonloc::ConcreteInt>(&SignedInt);
|
CI2 = cast<nonloc::ConcreteInt>(&SignedInt);
|
||||||
|
|||||||
Reference in New Issue
Block a user