Skip to content

Commit 3e5afba

Browse files
authored
[NFC] [hwasan] be consistent about how to get integer types (#84396)
1 parent a01e9ce commit 3e5afba

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ class HWAddressSanitizer {
412412
Type *VoidTy = Type::getVoidTy(M.getContext());
413413
Type *IntptrTy;
414414
PointerType *PtrTy;
415-
Type *Int8Ty;
416-
Type *Int32Ty;
415+
Type *Int8Ty = Type::getInt8Ty(M.getContext());
416+
Type *Int32Ty = Type::getInt32Ty(M.getContext());
417417
Type *Int64Ty = Type::getInt64Ty(M.getContext());
418418

419419
bool CompileKernel;
@@ -615,8 +615,6 @@ void HWAddressSanitizer::initializeModule() {
615615
IRBuilder<> IRB(*C);
616616
IntptrTy = IRB.getIntPtrTy(DL);
617617
PtrTy = IRB.getPtrTy();
618-
Int8Ty = IRB.getInt8Ty();
619-
Int32Ty = IRB.getInt32Ty();
620618

621619
HwasanCtorFunction = nullptr;
622620

0 commit comments

Comments
 (0)