Fix unused variable warning after r273754.
authorJames Y Knight <jyknight@google.com>
Sat, 25 Jun 2016 16:40:53 +0000 (16:40 +0000)
committerJames Y Knight <jyknight@google.com>
Sat, 25 Jun 2016 16:40:53 +0000 (16:40 +0000)
llvm-svn: 273783

clang/lib/Sema/Sema.cpp

index a87f13d..a242ace 100644 (file)
@@ -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.