[llvm] e06c9b6 - [NFC] [HWASan] remove unnecessary cast
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 28 17:48:30 PDT 2022
Author: Florian Mayer
Date: 2022-09-28T17:48:19-07:00
New Revision: e06c9b63bc7b8bc1c8f95223780d1023b9f07324
URL: https://github.com/llvm/llvm-project/commit/e06c9b63bc7b8bc1c8f95223780d1023b9f07324
DIFF: https://github.com/llvm/llvm-project/commit/e06c9b63bc7b8bc1c8f95223780d1023b9f07324.diff
LOG: [NFC] [HWASan] remove unnecessary cast
Added:
Modified:
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
index 293a03a6d6b5f..eb54069e74dba 100644
--- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
@@ -1483,7 +1483,7 @@ bool HWAddressSanitizer::sanitizeFunction(Function &F,
if (ClInstrumentMemIntrinsics && !IntrinToInstrument.empty()) {
for (auto *Inst : IntrinToInstrument)
- instrumentMemIntrinsic(cast<MemIntrinsic>(Inst));
+ instrumentMemIntrinsic(Inst);
}
ShadowBase = nullptr;
More information about the llvm-commits
mailing list