From 51954276ccee058ba3e82f41fb09e77da39d2d85 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 13 Jul 2010 23:17:26 +0000 Subject: Introduce a new cast kind for an "lvalue bitcast", which handles reinterpret_casts (possibly indirectly via C-style/functional casts) on values, e.g., int i; reinterpret_cast(i); The IR generated for this is essentially the same as for *reinterpret_cast(&i). Fixes PR6437, PR7593, and PR7344. llvm-svn: 108294 --- clang/lib/Checker/GRExprEngine.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Checker') diff --git a/clang/lib/Checker/GRExprEngine.cpp b/clang/lib/Checker/GRExprEngine.cpp index 4652a4c89ff..07fee9d39e4 100644 --- a/clang/lib/Checker/GRExprEngine.cpp +++ b/clang/lib/Checker/GRExprEngine.cpp @@ -2438,6 +2438,7 @@ void GRExprEngine::VisitCast(CastExpr *CastE, Expr *Ex, ExplodedNode *Pred, case CastExpr::CK_Unknown: case CastExpr::CK_ArrayToPointerDecay: case CastExpr::CK_BitCast: + case CastExpr::CK_LValueBitCast: case CastExpr::CK_IntegralCast: case CastExpr::CK_IntegralToPointer: case CastExpr::CK_PointerToIntegral: -- cgit v1.2.3