[llvm] e652d99 - [DFSan][NFC] Fix shadowing variable name.
Andrew Browne via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 15 22:59:05 PDT 2021
Author: Andrew Browne
Date: 2021-06-15T22:58:22-07:00
New Revision: e652d991699fcd337b4ebb355fb14553d644d4c4
URL: https://github.com/llvm/llvm-project/commit/e652d991699fcd337b4ebb355fb14553d644d4c4
DIFF: https://github.com/llvm/llvm-project/commit/e652d991699fcd337b4ebb355fb14553d644d4c4.diff
LOG: [DFSan][NFC] Fix shadowing variable name.
Added:
Modified:
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
index 9b24f1139d9a..ae375314f994 100644
--- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
@@ -346,10 +346,7 @@ class DataFlowSanitizer {
enum { ShadowWidthBits = 8, ShadowWidthBytes = ShadowWidthBits / 8 };
- enum {
- OriginWidthBits = 32,
- OriginWidthBytes = OriginWidthBits / 8
- };
+ enum { OriginWidthBits = 32, OriginWidthBytes = OriginWidthBits / 8 };
/// Which ABI should be used for instrumented functions?
enum InstrumentedABI {
@@ -2947,8 +2944,9 @@ bool DFSanVisitor::visitWrappedCallBase(Function &F, CallBase &CB) {
TName += utostr(FT->getNumParams() - N);
TName += "$";
TName += F.getName();
- Constant *T = DFSF.DFS.getOrBuildTrampolineFunction(ParamFT, TName);
- Args.push_back(T);
+ Constant *Trampoline =
+ DFSF.DFS.getOrBuildTrampolineFunction(ParamFT, TName);
+ Args.push_back(Trampoline);
Args.push_back(
IRB.CreateBitCast(*I, Type::getInt8PtrTy(*DFSF.DFS.Ctx)));
} else {
More information about the llvm-commits
mailing list