]> granicus.if.org Git - clang/commit
Fix unused-function warning differently from r220853
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 31 Oct 2014 17:08:11 +0000 (17:08 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 31 Oct 2014 17:08:11 +0000 (17:08 +0000)
commit4dad1441d2d34698bc71cca028fd40d9d27e8714
treea8860585bf95a426a9276d65069bffccad1bc7bd
parenta155890d1fab6388e3564e44738a49f300429123
Fix unused-function warning differently from r220853

Rather than executing this code only needed for an assertion even in a
non-asserts build, just roll the function into the assert. The assertion
text literally describes the two cases so it doesn't seem like this
benefits much from having a separate function (& have to hassle about
ifndef NDEBUG it out, etc)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220970 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp