summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/TreeTransform.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-05-29 07:32:14 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-05-29 07:32:14 +0000
commita923fb2b3b009ff7a6c516f54c401c5fb533bc0c (patch)
tree353b8be41758b1713cb1abd5556c06118abf901c /clang/lib/Sema/TreeTransform.h
parentb025724b46650db199da9d1c6bd6ff1ba536c54b (diff)
downloadbcm5719-llvm-a923fb2b3b009ff7a6c516f54c401c5fb533bc0c.tar.gz
bcm5719-llvm-a923fb2b3b009ff7a6c516f54c401c5fb533bc0c.zip
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. llvm-svn: 132284
Diffstat (limited to 'clang/lib/Sema/TreeTransform.h')
-rw-r--r--clang/lib/Sema/TreeTransform.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h
index 2bf3c228c49..1473ae5ac2b 100644
--- a/clang/lib/Sema/TreeTransform.h
+++ b/clang/lib/Sema/TreeTransform.h
@@ -1378,7 +1378,7 @@ public:
UnaryExprOrTypeTrait ExprKind,
SourceRange R) {
ExprResult Result
- = getSema().CreateUnaryExprOrTypeTraitExpr(SubExpr, ExprKind);
+ = getSema().CreateUnaryExprOrTypeTraitExpr(SubExpr, OpLoc, ExprKind);
if (Result.isInvalid())
return ExprError();
OpenPOWER on IntegriCloud