summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCInstrDesc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/MC/MCInstrDesc.cpp')
-rw-r--r--llvm/lib/MC/MCInstrDesc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCInstrDesc.cpp b/llvm/lib/MC/MCInstrDesc.cpp
index 0f942cd3a74..decc2d84b25 100644
--- a/llvm/lib/MC/MCInstrDesc.cpp
+++ b/llvm/lib/MC/MCInstrDesc.cpp
@@ -23,7 +23,7 @@ bool MCInstrDesc::getDeprecatedInfo(MCInst &MI, MCSubtargetInfo &STI,
std::string &Info) const {
if (ComplexDeprecationInfo)
return ComplexDeprecationInfo(MI, STI, Info);
- if ((DeprecatedFeatureMask & STI.getFeatureBits()) != 0) {
+ if (DeprecatedFeature != -1 && STI.getFeatureBits()[DeprecatedFeature]) {
// FIXME: it would be nice to include the subtarget feature here.
Info = "deprecated";
return true;
OpenPOWER on IntegriCloud