aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-05-06 05:28:42 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-05-06 05:28:42 +0000
commita8426972609c908b529ab26c69c35586d8bc06a8 (patch)
tree2b7a53ffab2f7ae92a7442a4a34ce14e23729711 /lib/AST/Decl.cpp
parentc40f73c6e715044d327409564bf3656254101d46 (diff)
Mark a variable as used in the absence of asserts to silence a GCC warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r--lib/AST/Decl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp
index ffe49671d8..e19a9fb7c2 100644
--- a/lib/AST/Decl.cpp
+++ b/lib/AST/Decl.cpp
@@ -1509,6 +1509,7 @@ void TagDecl::completeDefinition() {
TypeForDecl->getAs<InjectedClassNameType>())) {
assert(Injected->Decl == this &&
"Attempt to redefine a class template definition?");
+ (void)Injected;
}
}