Change SValBuilder::getConditionType() to return BoolTy in C++. Fixes <rdar://problem/12772656>.

llvm-svn: 168846
This commit is contained in:
Ted Kremenek 2012-11-29 01:03:10 +00:00
parent 75a0333bf8
commit ad6e5b262a
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public:
ProgramStateManager &getStateManager() { return StateMgr; }
QualType getConditionType() const {
return getContext().IntTy;
return Context.getLangOpts().CPlusPlus ? Context.BoolTy : Context.IntTy;
}
QualType getArrayIndexType() const {