r273783 - Fix unused variable warning after r273754.
James Y Knight via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 25 09:40:54 PDT 2016
Author: jyknight
Date: Sat Jun 25 11:40:53 2016
New Revision: 273783
URL: http://llvm.org/viewvc/llvm-project?rev=273783&view=rev
Log:
Fix unused variable warning after r273754.
Modified:
cfe/trunk/lib/Sema/Sema.cpp
Modified: cfe/trunk/lib/Sema/Sema.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.cpp?rev=273783&r1=273782&r2=273783&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Sema.cpp (original)
+++ cfe/trunk/lib/Sema/Sema.cpp Sat Jun 25 11:40:53 2016
@@ -525,6 +525,7 @@ static void checkUndefinedButUsed(Sema &
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.
More information about the cfe-commits
mailing list