]> granicus.if.org Git - clang/commitdiff
Removed unused variable [NFC]
authorMikael Holmen <mikael.holmen@ericsson.com>
Tue, 21 Aug 2018 07:22:45 +0000 (07:22 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Tue, 21 Aug 2018 07:22:45 +0000 (07:22 +0000)
The compiler warned:
../tools/clang/lib/Sema/SemaType.cpp:6788:31: error: unused variable 'AT' [-Werror,-Wunused-variable]
    if (const AttributedType *AT = S.getCallingConvAttributedType(type)) {
                              ^
1 error generated.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340251 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaType.cpp

index bad66162491c2212456975234f5f7f9f5b977580..71437f6e2c9bb284cc631aa24474836c7f0e36b0 100644 (file)
@@ -6785,7 +6785,7 @@ static bool handleFunctionTypeAttr(TypeProcessingState &state, ParsedAttr &attr,
   if (CCOld != CC) {
     // Error out on when there's already an attribute on the type
     // and the CCs don't match.
-    if (const AttributedType *AT = S.getCallingConvAttributedType(type)) {
+    if (S.getCallingConvAttributedType(type)) {
       S.Diag(attr.getLoc(), diag::err_attributes_are_not_compatible)
         << FunctionType::getNameForCallConv(CC)
         << FunctionType::getNameForCallConv(CCOld);