[llvm] 09011c4 - [Coverity] Constant variable guards dead code.
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 23 04:20:17 PDT 2023
Author: Luo, Yuanke
Date: 2023-05-23T19:18:44+08:00
New Revision: 09011c4eb82dc6eb0a1e64666a585a0269c6a6aa
URL: https://github.com/llvm/llvm-project/commit/09011c4eb82dc6eb0a1e64666a585a0269c6a6aa
DIFF: https://github.com/llvm/llvm-project/commit/09011c4eb82dc6eb0a1e64666a585a0269c6a6aa.diff
LOG: [Coverity] Constant variable guards dead code.
Added:
Modified:
llvm/lib/MC/MCContext.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index 6ec1a9ae8444d..3d0133d8a446b 100644
--- a/llvm/lib/MC/MCContext.cpp
+++ b/llvm/lib/MC/MCContext.cpp
@@ -846,9 +846,6 @@ MCSectionSPIRV *MCContext::getSPIRVSection() {
Result->getFragmentList().insert(Result->begin(), F);
F->setParent(Result);
- if (Begin)
- Begin->setFragment(F);
-
return Result;
}
More information about the llvm-commits
mailing list