Skip to content

Commit

Permalink
Fix unused variable warning after r273754.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273783 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
jyknight committed Jun 25, 2016
1 parent 2a5a1ee commit 116ce84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Sema/Sema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 116ce84

Please sign in to comment.