[llvm] b4b5f14 - Verifier: Update error message for opaque pointers
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 27 10:12:36 PST 2022
Author: Matt Arsenault
Date: 2022-11-27T12:55:30-05:00
New Revision: b4b5f140adda5b584bd3ac90d26e8e01067c9429
URL: https://github.com/llvm/llvm-project/commit/b4b5f140adda5b584bd3ac90d26e8e01067c9429
DIFF: https://github.com/llvm/llvm-project/commit/b4b5f140adda5b584bd3ac90d26e8e01067c9429.diff
LOG: Verifier: Update error message for opaque pointers
Added:
Modified:
llvm/lib/IR/Verifier.cpp
llvm/test/Verifier/global-ctors-2.ll
Removed:
################################################################################
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 1f5d5d9c0324..11842ef4a169 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -743,7 +743,7 @@ void Verifier::visitGlobalVariable(const GlobalVariable &GV) {
"wrong type for intrinsic global variable", &GV);
Check(STy->getNumElements() == 3,
"the third field of the element type is mandatory, "
- "specify i8* null to migrate from the obsoleted 2-field form");
+ "specify ptr null to migrate from the obsoleted 2-field form");
Type *ETy = STy->getTypeAtIndex(2);
Type *Int8Ty = Type::getInt8Ty(ETy->getContext());
Check(ETy->isPointerTy() &&
diff --git a/llvm/test/Verifier/global-ctors-2.ll b/llvm/test/Verifier/global-ctors-2.ll
index a811512a9314..634fef10d944 100644
--- a/llvm/test/Verifier/global-ctors-2.ll
+++ b/llvm/test/Verifier/global-ctors-2.ll
@@ -3,4 +3,4 @@
@llvm.global_ctors = appending global [1 x { i32, void()* } ] [
{ i32, void()* } { i32 65535, void ()* null }
]
-; CHECK: the third field of the element type is mandatory, specify i8* null to migrate from the obsoleted 2-field form
+; CHECK: the third field of the element type is mandatory, specify ptr null to migrate from the obsoleted 2-field form
More information about the llvm-commits
mailing list