summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2018-10-23 17:55:35 +0000
committerLeonard Chan <leonardchan@google.com>2018-10-23 17:55:35 +0000
commitb4ba467da89353fda84a08175971859b1e52fde4 (patch)
tree5717ccd5f1108933d71925a52a4c7345119b6d10 /clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
parent29d8639732bc367aab862529779c70e43e463d0c (diff)
downloadbcm5719-llvm-b4ba467da89353fda84a08175971859b1e52fde4.tar.gz
bcm5719-llvm-b4ba467da89353fda84a08175971859b1e52fde4.zip
[Fixed Point Arithmetic] Fixed Point to Boolean Cast
This patch is a part of https://reviews.llvm.org/D48456 in an attempt to split the casting logic up into smaller patches. This contains the code for casting from fixed point types to boolean types. Differential Revision: https://reviews.llvm.org/D53308 llvm-svn: 345063
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
index bdf56af96b5..7a35c0acb00 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
@@ -415,7 +415,8 @@ void ExprEngine::VisitCast(const CastExpr *CastE, const Expr *Ex,
case CK_ZeroToOCLOpaqueType:
case CK_IntToOCLSampler:
case CK_LValueBitCast:
- case CK_FixedPointCast: {
+ case CK_FixedPointCast:
+ case CK_FixedPointToBoolean: {
state =
handleLValueBitCast(state, Ex, LCtx, T, ExTy, CastE, Bldr, Pred);
continue;
OpenPOWER on IntegriCloud