[llvm] [IR][unittests] Replace of PointerType::get(Type) with opaque version (NFC) (PR #123621)

Mats Jun Larsen via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 08:09:55 PST 2025


================
@@ -406,8 +406,8 @@ TEST(InstructionsTest, CastCAPI) {
   Type *FloatTy = Type::getFloatTy(C);
   Type *DoubleTy = Type::getDoubleTy(C);
 
-  Type *Int8PtrTy = PointerType::get(Int8Ty, 0);
-  Type *Int32PtrTy = PointerType::get(Int32Ty, 0);
+  Type *Int8PtrTy = PointerType::get(C, 0);
+  Type *Int32PtrTy = PointerType::get(C, 0);
----------------
junlarsen wrote:

I also took care of some the same issue in the test above and below.

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


More information about the llvm-commits mailing list