[Syntax] Silence "unused function" warning in no-assert builds. NFC

A helper `isImpicitExpr` is only used inside assert.
This commit is contained in:
Ilya Biryukov 2019-11-07 09:37:25 +01:00
parent c44a9b538d
commit 96065cf79f
1 changed files with 2 additions and 0 deletions

View File

@ -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