]> granicus.if.org Git - clang/commit
Fix -Wshift-count-negative. It didn't work if the right hand side
authorDavide Italiano <davide@freebsd.org>
Thu, 26 Mar 2015 21:37:49 +0000 (21:37 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 26 Mar 2015 21:37:49 +0000 (21:37 +0000)
commite97393dd73c4e2460f62ccdaa1069f50536bdc8f
treecee4eed95660aa09f15446a038bcc0f0be97132f
parent50c0ec30867637267345baf6dd47ebbda4c4b27c
Fix -Wshift-count-negative. It didn't work if the right hand side
of the shift wasn't a constant integer expression, now it (hopefully)
does.

PR: 22059

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233320 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/Sema/warn-shift-negative.c [new file with mode: 0644]