summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2019-11-07 09:37:25 +0100
committerIlya Biryukov <ibiryukov@google.com>2019-11-07 09:37:25 +0100
commit96065cf79ff76d5fd4fdaeb2fb2650074b3e0e51 (patch)
treee94bddd3fb5e9fd14823f5350246df65875df164
parentc44a9b538d8cd468dd978c0d1fe447d2df69566a (diff)
downloadbcm5719-llvm-96065cf79ff76d5fd4fdaeb2fb2650074b3e0e51.tar.gz
bcm5719-llvm-96065cf79ff76d5fd4fdaeb2fb2650074b3e0e51.zip
[Syntax] Silence "unused function" warning in no-assert builds. NFC
A helper `isImpicitExpr` is only used inside assert.
-rw-r--r--clang/lib/Tooling/Syntax/BuildTree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Tooling/Syntax/BuildTree.cpp b/clang/lib/Tooling/Syntax/BuildTree.cpp
index 1be23f7e797..dddc265c8c4 100644
--- a/clang/lib/Tooling/Syntax/BuildTree.cpp
+++ b/clang/lib/Tooling/Syntax/BuildTree.cpp
@@ -21,12 +21,14 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Casting.h"
+#include "llvm/Support/Compiler.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/raw_ostream.h"
#include <map>
using namespace clang;
+LLVM_ATTRIBUTE_UNUSED
static bool isImplicitExpr(clang::Expr *E) { return E->IgnoreImplicit() != E; }
/// A helper class for constructing the syntax tree while traversing a clang
OpenPOWER on IntegriCloud