[llvm] 2d1828d - [ASan][NFC] Remove duplicate variable AccessInfo (#102305)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 17:38:52 PDT 2024
Author: int-zjt
Date: 2024-08-07T17:38:48-07:00
New Revision: 2d1828d29378e338cf96d78ea17d4c1833c7aac6
URL: https://github.com/llvm/llvm-project/commit/2d1828d29378e338cf96d78ea17d4c1833c7aac6
DIFF: https://github.com/llvm/llvm-project/commit/2d1828d29378e338cf96d78ea17d4c1833c7aac6.diff
LOG: [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 <zhangjiatong.0 at bytedance.com>
Added:
Modified:
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 9fb1df7ab2b79c..0ff5e9b815adfc 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -1847,7 +1847,6 @@ void AddressSanitizer::instrumentAddress(Instruction *OrigIns,
InstrumentationIRBuilder IRB(InsertBefore);
size_t AccessSizeIndex = TypeStoreSizeToSizeIndex(TypeStoreSize);
- const ASanAccessInfo AccessInfo(IsWrite, CompileKernel, AccessSizeIndex);
if (UseCalls && ClOptimizeCallbacks) {
const ASanAccessInfo AccessInfo(IsWrite, CompileKernel, AccessSizeIndex);
More information about the llvm-commits
mailing list