[llvm] c8e4b53 - [VFABI] Remove unused variables in testcase, fix buildbot

Mikael Holmen via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 11 23:32:05 PST 2019


Author: Mikael Holmen
Date: 2019-11-12T08:28:12+01:00
New Revision: c8e4b536771e2ebb4702da3de0a7e4238b433bbf

URL: https://github.com/llvm/llvm-project/commit/c8e4b536771e2ebb4702da3de0a7e4238b433bbf
DIFF: https://github.com/llvm/llvm-project/commit/c8e4b536771e2ebb4702da3de0a7e4238b433bbf.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/unittests/Transforms/Utils/VFABIUtils.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Transforms/Utils/VFABIUtils.cpp b/llvm/unittests/Transforms/Utils/VFABIUtils.cpp
index f69e31cd610b..689e1280deab 100644
--- a/llvm/unittests/Transforms/Utils/VFABIUtils.cpp
+++ b/llvm/unittests/Transforms/Utils/VFABIUtils.cpp
@@ -46,8 +46,6 @@ TEST_F(VFABIAttrTest, Write) {
   Mappings.push_back("_ZGVnN8v_g");
   Mappings.push_back("_ZGVnN2v_g(custom_vg)");
   VFABI::setVectorVariantNames(CI, Mappings);
-  const AttributeList Attrs = CI->getAttributes();
-  const AttributeSet FnAttrs = Attrs.getFnAttributes();
   const StringRef S = CI->getAttribute(AttributeList::FunctionIndex,
                                        "vector-function-abi-variant")
                           .getValueAsString();


        


More information about the llvm-commits mailing list