r340251 - Removed unused variable [NFC]
Mikael Holmen via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 21 00:22:45 PDT 2018
Author: uabelho
Date: Tue Aug 21 00:22:45 2018
New Revision: 340251
URL: http://llvm.org/viewvc/llvm-project?rev=340251&view=rev
Log:
Removed unused variable [NFC]
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.
Modified:
cfe/trunk/lib/Sema/SemaType.cpp
Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=340251&r1=340250&r2=340251&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Tue Aug 21 00:22:45 2018
@@ -6785,7 +6785,7 @@ static bool handleFunctionTypeAttr(TypeP
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);
More information about the cfe-commits
mailing list