aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCCodeView.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-06-27 09:47:53 -0700
committerFangrui Song <i@maskray.me>2025-06-27 09:47:53 -0700
commitaf2bf2e544b5c2a8a3cc4fd2acab2cc83107af66 (patch)
treed50d60a1b26ae151bdc0f1c9952264d3d24f49e9 /llvm/lib/MC/MCCodeView.cpp
parent74cabdb806aea341f6bdcc57e2377882f08a4684 (diff)
downloadllvm-af2bf2e544b5c2a8a3cc4fd2acab2cc83107af66.zip
llvm-af2bf2e544b5c2a8a3cc4fd2acab2cc83107af66.tar.gz
llvm-af2bf2e544b5c2a8a3cc4fd2acab2cc83107af66.tar.bz2
MC: Remove unneeded MCSymbolRefExpr::VariantKind calls
Diffstat (limited to 'llvm/lib/MC/MCCodeView.cpp')
-rw-r--r--llvm/lib/MC/MCCodeView.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp
index e78f5a0..1407bc5 100644
--- a/llvm/lib/MC/MCCodeView.cpp
+++ b/llvm/lib/MC/MCCodeView.cpp
@@ -453,9 +453,8 @@ MCFragment *CodeViewContext::emitDefRange(
static unsigned computeLabelDiff(const MCAssembler &Asm, const MCSymbol *Begin,
const MCSymbol *End) {
MCContext &Ctx = Asm.getContext();
- MCSymbolRefExpr::VariantKind Variant = MCSymbolRefExpr::VK_None;
- const MCExpr *BeginRef = MCSymbolRefExpr::create(Begin, Variant, Ctx),
- *EndRef = MCSymbolRefExpr::create(End, Variant, Ctx);
+ const MCExpr *BeginRef = MCSymbolRefExpr::create(Begin, Ctx),
+ *EndRef = MCSymbolRefExpr::create(End, Ctx);
const MCExpr *AddrDelta =
MCBinaryExpr::create(MCBinaryExpr::Sub, EndRef, BeginRef, Ctx);
int64_t Result;