r315688 - Remove an unused variable.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 13 08:34:03 PDT 2017
Author: hokein
Date: Fri Oct 13 08:34:03 2017
New Revision: 315688
URL: http://llvm.org/viewvc/llvm-project?rev=315688&view=rev
Log:
Remove an unused variable.
Fix -Wunused-but-set-variable warning.
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=315688&r1=315687&r2=315688&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Fri Oct 13 08:34:03 2017
@@ -7079,7 +7079,6 @@ static void processTypeAttrs(TypeProcess
// type, but others can be present in the type specifiers even though they
// apply to the decl. Here we apply type attributes and ignore the rest.
- bool hasOpenCLAddressSpace = false;
while (attrs) {
AttributeList &attr = *attrs;
attrs = attr.getNext(); // reset to the next here due to early loop continue
@@ -7142,7 +7141,6 @@ static void processTypeAttrs(TypeProcess
case AttributeList::AT_AddressSpace:
HandleAddressSpaceTypeAttribute(type, attr, state.getSema());
attr.setUsedAsTypeAttr();
- hasOpenCLAddressSpace = true;
break;
OBJC_POINTER_TYPE_ATTRS_CASELIST:
if (!handleObjCPointerTypeAttr(state, attr, type))
More information about the cfe-commits
mailing list