]> granicus.if.org Git - clang/commit
Fix for PR2720; be a little bit more permissive in initializers for
authorEli Friedman <eli.friedman@gmail.com>
Mon, 25 Aug 2008 20:46:57 +0000 (20:46 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 25 Aug 2008 20:46:57 +0000 (20:46 +0000)
commitc3f07644a7846ac6fa8d952afcec7649a48213c4
tree6abf436b4cdf05702731b461d6a1059c3980cb5f
parent6ba82a4a4b295e54cf192c3e98b28f39990c6194
Fix for PR2720; be a little bit more permissive in initializers for
casting pointers to integers.

Eventually, we should check whether we can evaluate an expression
using Expr::tryEvaluate, and this codepath should be tightened to only
handle standard-compliant cases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55331 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/const-ptr-int-ptr-cast.c [new file with mode: 0644]