summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorNikola Smiljanic <popizdeh@gmail.com>2014-05-29 14:05:12 +0000
committerNikola Smiljanic <popizdeh@gmail.com>2014-05-29 14:05:12 +0000
commit03ff2596cb161e77af62a8046615a52d3183aa9e (patch)
tree416d5b983bb4d172c6ae8e6d1a5f9cdfbda66e04 /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
parentef5f26bf19a6e00be53ef29a48bc8e94adadbf9e (diff)
downloadbcm5719-llvm-03ff2596cb161e77af62a8046615a52d3183aa9e.tar.gz
bcm5719-llvm-03ff2596cb161e77af62a8046615a52d3183aa9e.zip
Refactoring. Remove Owned method from Sema.
llvm-svn: 209812
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiateDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 9ecd8d082ef..5635bea63d9 100644
--- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -741,7 +741,7 @@ void TemplateDeclInstantiator::InstantiateEnumDefinition(
EnumConstantDecl *LastEnumConst = nullptr;
for (auto *EC : Pattern->enumerators()) {
// The specified value for the enumerator.
- ExprResult Value = SemaRef.Owned((Expr *)nullptr);
+ ExprResult Value((Expr *)nullptr);
if (Expr *UninstValue = EC->getInitExpr()) {
// The enumerator's value expression is a constant expression.
EnterExpressionEvaluationContext Unevaluated(SemaRef,
@@ -753,7 +753,7 @@ void TemplateDeclInstantiator::InstantiateEnumDefinition(
// Drop the initial value and continue.
bool isInvalid = false;
if (Value.isInvalid()) {
- Value = SemaRef.Owned((Expr *)nullptr);
+ Value = nullptr;
isInvalid = true;
}
OpenPOWER on IntegriCloud