Skip to content

Commit 2d1828d

Browse files
int-zjtzhangjiatong.0
and
zhangjiatong.0
authored
[ASan][NFC] Remove duplicate variable AccessInfo (#102305)
A variable named AccessInfo was used in a condition code block, but it is declared both in and out of this condition code block. Co-authored-by: zhangjiatong.0 <[email protected]>
1 parent cf56e26 commit 2d1828d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,6 @@ void AddressSanitizer::instrumentAddress(Instruction *OrigIns,
18471847

18481848
InstrumentationIRBuilder IRB(InsertBefore);
18491849
size_t AccessSizeIndex = TypeStoreSizeToSizeIndex(TypeStoreSize);
1850-
const ASanAccessInfo AccessInfo(IsWrite, CompileKernel, AccessSizeIndex);
18511850

18521851
if (UseCalls && ClOptimizeCallbacks) {
18531852
const ASanAccessInfo AccessInfo(IsWrite, CompileKernel, AccessSizeIndex);

0 commit comments

Comments
 (0)