From 5721e0f37ab7c7da31a40283d97f05cada654e19 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Tue, 9 Aug 2016 10:00:23 +0000 Subject: [analyzer] Try to fix coverity CID 1360469. Patch by Raphael Isemann! llvm-svn: 278110 --- clang/lib/Analysis/CloneDetection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Analysis/CloneDetection.cpp') diff --git a/clang/lib/Analysis/CloneDetection.cpp b/clang/lib/Analysis/CloneDetection.cpp index 5e241bfe172..038f9eb87cd 100644 --- a/clang/lib/Analysis/CloneDetection.cpp +++ b/clang/lib/Analysis/CloneDetection.cpp @@ -67,7 +67,7 @@ StmtSequence::iterator StmtSequence::begin() const { StmtSequence::iterator StmtSequence::end() const { if (!holdsSequence()) { - return &S + 1; + return reinterpret_cast(&S) + 1; } auto CS = cast(S); return CS->body_begin() + EndIndex; -- cgit v1.2.3