]> granicus.if.org Git - clang/commitdiff
Suppress a warning in -Asserts builds.
authorJohn McCall <rjmccall@apple.com>
Wed, 15 Jun 2011 23:40:09 +0000 (23:40 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 15 Jun 2011 23:40:09 +0000 (23:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133110 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDecl.cpp

index 14e999f589caa7bafada52848a182b347f30bc61..b013446f6b6054d79887b35897e4c2e23bea4d53 100644 (file)
@@ -1082,6 +1082,7 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg,
         const ObjCMethodDecl *method = cast<ObjCMethodDecl>(CurCodeDecl);
         assert(&D == method->getSelfDecl());
         assert(method->getMethodFamily() != OMF_init);
+        (void) method;
         lt = Qualifiers::OCL_ExplicitNone;
       }