[cfe-dev] Pointer Arithmetic

Keith Bauer onesadcookie at gmail.com
Thu Jul 12 04:56:21 PDT 2007


After further reflection, I've realized that the test

if (isa<PointerType>(ExprTy)) {

in

case BinaryOperator::Sub

should not detect (pointer - pointer), since the type of that
expression should be integral (ptrdiff_t).  However, it *is* detecting
(pointer - pointer), which is causing at least one of the problems I
had with implementing it...

Where is that expression's type coming from?

-Keith



More information about the cfe-dev mailing list