]> granicus.if.org Git - clang/commit
Make sure to take the unqualified versions of the canonical types for
authorEli Friedman <eli.friedman@gmail.com>
Tue, 2 Sep 2008 05:09:35 +0000 (05:09 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 2 Sep 2008 05:09:35 +0000 (05:09 +0000)
commitf1c7b48638a3ec78129fee9672ed8e2616e63c9c
treed61e3158e5ebe808ca420956aae32f5e07dccbf2
parentf43aa4410f6fa53d72a277b3429c9f814f54d1b5
Make sure to take the unqualified versions of the canonical types for
type-checking pointer subtraction; if the canonical types aren't used,
the qualifiers won't always get stripped off correctly.

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