[llvm] [VFABI] Improve VFABI unit tests (PR #73907)

Graham Hunter via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 07:41:41 PST 2023


================
@@ -34,20 +35,22 @@ class VFABIParserTest : public ::testing::Test {
         << "The function must be present in the module\n";
     // Reset the VFInfo
     Info = VFInfo();
+    ScalarFuncParametersNum = 0;
   }
 
   // Data needed to load the optional IR passed to invokeParser
   LLVMContext Ctx;
   SMDiagnostic Err;
   std::unique_ptr<Module> M;
-  FunctionType *FTy;
+  FunctionType *FTy = nullptr;
----------------
huntergr-arm wrote:

Probably a good idea to change the name to ScalarFTy or similar to clarify.

https://github.com/llvm/llvm-project/pull/73907


More information about the llvm-commits mailing list