]> granicus.if.org Git - clang/commit
Fix a regression in the source locations for unary trait expressions.
authorChandler Carruth <chandlerc@gmail.com>
Sun, 29 May 2011 07:32:14 +0000 (07:32 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 29 May 2011 07:32:14 +0000 (07:32 +0000)
commite72c55b9a11be9f00fa3f66f7ad6b73b2814e963
tree7694d25bd6346d4d63c645b59881443639753389
parent93c332a8ba2c193c435b293966d343dab15f555b
Fix a regression in the source locations for unary trait expressions.
I tried to use an assert to prove that I could remove each of the
arguments I did, but ended up writing my assert with inverted logic.
Doh! Reported by Xi Wang on cfe-dev. I have manually verified the source
locations and ranges for these using -ast-dump. I tried writing a test
case that would catch these, but these expressions aren't exposed in the
c-index-test's token annotation utility.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132284 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/TreeTransform.h