Skip to content

Commit c8e4b53

Browse files
committed
[VFABI] Remove unused variables in testcase, fix buildbot
E.g. the buildbot at http://lab.llvm.org:8011/builders/ppc64le-lld-multistage-test/builds/7259/steps/build-stage2-unified-tree/logs/stdio failed with /home/buildbots/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/unittests/Transforms/Utils/VFABIUtils.cpp:50:22: error: unused variable 'FnAttrs' [-Werror,-Wunused-variable] const AttributeSet FnAttrs = Attrs.getFnAttributes(); ^ 1 error generated.
1 parent e80e9b9 commit c8e4b53

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/unittests/Transforms/Utils/VFABIUtils.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ TEST_F(VFABIAttrTest, Write) {
4646
Mappings.push_back("_ZGVnN8v_g");
4747
Mappings.push_back("_ZGVnN2v_g(custom_vg)");
4848
VFABI::setVectorVariantNames(CI, Mappings);
49-
const AttributeList Attrs = CI->getAttributes();
50-
const AttributeSet FnAttrs = Attrs.getFnAttributes();
5149
const StringRef S = CI->getAttribute(AttributeList::FunctionIndex,
5250
"vector-function-abi-variant")
5351
.getValueAsString();

0 commit comments

Comments
 (0)