summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorBruno Ricci <riccibrun@gmail.com>2018-12-21 14:35:24 +0000
committerBruno Ricci <riccibrun@gmail.com>2018-12-21 14:35:24 +0000
commit4224c8764c42bdaf95f988dfebe16c90613762b8 (patch)
treea071bfaeae8795c4bc1f5776c2688b8b39cde00d /clang/lib/Sema/SemaChecking.cpp
parentaf1ab22a768f97d9cb585886e157f2c948819f4d (diff)
downloadbcm5719-llvm-4224c8764c42bdaf95f988dfebe16c90613762b8.tar.gz
bcm5719-llvm-4224c8764c42bdaf95f988dfebe16c90613762b8.zip
[Sema][NFC] Remove some unnecessary calls to getASTContext.
The AST context is already easily available. NFC. llvm-svn: 349904
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 9fe65c1dce4..b9284a5b467 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -5148,8 +5148,6 @@ Sema::SemaBuiltinAtomicOverloaded(ExprResult TheCallResult) {
TheCall->setArg(i+1, Arg.get());
}
- ASTContext& Context = this->getASTContext();
-
// Create a new DeclRefExpr to refer to the new decl.
DeclRefExpr* NewDRE = DeclRefExpr::Create(
Context,
OpenPOWER on IntegriCloud