diff options
author | James Y Knight <jyknight@google.com> | 2016-06-25 16:40:53 +0000 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2016-06-25 16:40:53 +0000 |
commit | 116ce8458879ac0721cfd7badfd4c3868ed2da78 (patch) | |
tree | 3e2fc5eb3fc6bd17726dbc40c9f4e61b5f6d2bc2 | |
parent | 2a5a1ee012d3bb04365fca242d734c405934edbb (diff) |
Fix unused variable warning after r273754.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273783 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/Sema.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index a87f13d7e6..a242ace9f6 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -525,6 +525,7 @@ static void checkUndefinedButUsed(Sema &S) { S.Diag(ND->getLocation(), diag::warn_undefined_internal) << isa<VarDecl>(ND) << ND; } else if (auto *FD = dyn_cast<FunctionDecl>(ND)) { + (void)FD; assert(FD->getMostRecentDecl()->isInlined() && "used object requires definition but isn't inline or internal?"); // FIXME: This is ill-formed; we should reject. |