diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-28 15:14:14 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-28 15:14:14 +0000 |
commit | 6813d7ba5fa79e36bdb3986e7f3f8100915a61ab (patch) | |
tree | d65815af67d7300da6149f4812db6c6eeee70799 /lib/Sema/SemaTemplate.cpp | |
parent | ac7cbd8102a944c7e988b066fc52c03fdd536dc0 (diff) |
Enable expression transformations in the current-instantiation
rebuilder, i.e., remove a silly short-sighted hack from long
ago. Thanks to Abramo Bagnara for the test case/bug report!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index ea77a189f7..03e5281d83 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -5427,15 +5427,6 @@ namespace { this->Loc = Loc; this->Entity = Entity; } - - /// \brief Transforms an expression by returning the expression itself - /// (an identity function). - /// - /// FIXME: This is completely unsafe; we will need to actually clone the - /// expressions. - Sema::OwningExprResult TransformExpr(Expr *E) { - return getSema().Owned(E->Retain()); - } }; } |