forked from OSchip/llvm-project
Change SValBuilder::getConditionType() to return BoolTy in C++. Fixes <rdar://problem/12772656>.
llvm-svn: 168846
This commit is contained in:
parent
75a0333bf8
commit
ad6e5b262a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue