]> granicus.if.org Git - llvm/commit
[AArch64] Fix checks for AArch64MCExpr::VK_SABS flag.
authorEli Friedman <efriedma@quicinc.com>
Fri, 19 Apr 2019 21:58:10 +0000 (21:58 +0000)
committerEli Friedman <efriedma@quicinc.com>
Fri, 19 Apr 2019 21:58:10 +0000 (21:58 +0000)
commit00af5211667c4525a20a633bdd722d76e0ae5591
treeb646c3de61837ccf16aceb9455e41626bcff75cc
parent2f0e14e02f72d889f1b9747fcfadeb472cefcef2
[AArch64] Fix checks for AArch64MCExpr::VK_SABS flag.

VK_SABS is part of the SymLoc bitfield in the variant kind which should
be compared for equality, not by checking the VK_SABS bit.

As far as I know, the existing code happened to produce the correct
results in all cases, so this is just a cleanup.

Patch by Stephen Crane.

Differential Revision: https://reviews.llvm.org/D60596

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358788 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp