[cfe-commits] r168846 - /cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
Ted Kremenek
kremenek at apple.com
Wed Nov 28 17:03:10 PST 2012
Author: kremenek
Date: Wed Nov 28 19:03:10 2012
New Revision: 168846
URL: http://llvm.org/viewvc/llvm-project?rev=168846&view=rev
Log:
Change SValBuilder::getConditionType() to return BoolTy in C++. Fixes <rdar://problem/12772656>.
Modified:
cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h?rev=168846&r1=168845&r2=168846&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h Wed Nov 28 19:03:10 2012
@@ -124,7 +124,7 @@
ProgramStateManager &getStateManager() { return StateMgr; }
QualType getConditionType() const {
- return getContext().IntTy;
+ return Context.getLangOpts().CPlusPlus ? Context.BoolTy : Context.IntTy;
}
QualType getArrayIndexType() const {
More information about the cfe-commits
mailing list