We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a01e9ce commit 3e5afbaCopy full SHA for 3e5afba
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
@@ -412,8 +412,8 @@ class HWAddressSanitizer {
412
Type *VoidTy = Type::getVoidTy(M.getContext());
413
Type *IntptrTy;
414
PointerType *PtrTy;
415
- Type *Int8Ty;
416
- Type *Int32Ty;
+ Type *Int8Ty = Type::getInt8Ty(M.getContext());
+ Type *Int32Ty = Type::getInt32Ty(M.getContext());
417
Type *Int64Ty = Type::getInt64Ty(M.getContext());
418
419
bool CompileKernel;
@@ -615,8 +615,6 @@ void HWAddressSanitizer::initializeModule() {
615
IRBuilder<> IRB(*C);
616
IntptrTy = IRB.getIntPtrTy(DL);
617
PtrTy = IRB.getPtrTy();
618
- Int8Ty = IRB.getInt8Ty();
619
- Int32Ty = IRB.getInt32Ty();
620
621
HwasanCtorFunction = nullptr;
622
0 commit comments