clean more deadcode after D84704
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
340 ms | linux > HWAddressSanitizer-x86_64.TestCases::sizes.cpp |
Event Timeline
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | ||
---|---|---|
1054 | Since these functions are now just assigning and returning variables, can we completely remove the functions and the *TLSPtr variables, and just use DFS.*TLS directly? |
Comment Actions
FYI this results in unused private fields which causes diagnostic errors for -Wunused-private-field.
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp:365:13: error: private field 'GetArgTLS' is not used [-Werror,-Wunused-private-field] Constant *GetArgTLS; ^ llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp:366:13: error: private field 'GetRetvalTLS' is not used [-Werror,-Wunused-private-field] Constant *GetRetvalTLS;
Since these functions are now just assigning and returning variables, can we completely remove the functions and the *TLSPtr variables, and just use DFS.*TLS directly?