Fix suspicous isIntegerType() check, found by PVS Studio (PR12357).

llvm-svn: 157593
This commit is contained in:
Benjamin Kramer 2012-05-28 21:01:59 +00:00
parent 9d5849f51d
commit 938a71ff18
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public:
// FIXME: Remove the second disjunct when we support symbolic
// truncation/extension.
return (Context.getCanonicalType(Ty1) == Context.getCanonicalType(Ty2) ||
(Ty2->isIntegerType() && Ty2->isIntegerType()));
(Ty1->isIntegerType() && Ty2->isIntegerType()));
}
SVal evalCast(SVal val, QualType castTy, QualType originalType);