diff options
author | Fangrui Song <i@maskray.me> | 2025-06-27 09:47:53 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-06-27 09:47:53 -0700 |
commit | af2bf2e544b5c2a8a3cc4fd2acab2cc83107af66 (patch) | |
tree | d50d60a1b26ae151bdc0f1c9952264d3d24f49e9 /llvm/lib/MC/MCCodeView.cpp | |
parent | 74cabdb806aea341f6bdcc57e2377882f08a4684 (diff) | |
download | llvm-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.cpp | 5 |
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; |