summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2019-08-06 01:16:29 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2019-08-06 01:16:29 +0000
commitde4060816fa06c8acaef4fbfe1f687b69a430dac (patch)
tree7460cc55fe6031ccc21950cb7d1dfd35d0763afd
parent21fe0a314e93c4f494ee9020ae84079f1e89fcb7 (diff)
downloadbcm5719-llvm-de4060816fa06c8acaef4fbfe1f687b69a430dac.tar.gz
bcm5719-llvm-de4060816fa06c8acaef4fbfe1f687b69a430dac.zip
Fix another MSVC issue after 367965
Repeated the fix for MCRegister in Register This reverts r367932 (git commit eac86ec25f5cd5d7a973c913d3c2ca8c90b24115) llvm-svn: 367967
-rw-r--r--llvm/include/llvm/CodeGen/Register.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/Register.h b/llvm/include/llvm/CodeGen/Register.h
index 73bca60ffcb..d1c4f471882 100644
--- a/llvm/include/llvm/CodeGen/Register.h
+++ b/llvm/include/llvm/CodeGen/Register.h
@@ -126,6 +126,9 @@ public:
bool operator!=(unsigned Other) const { return Reg != Other; }
bool operator==(int Other) const { return Reg == unsigned(Other); }
bool operator!=(int Other) const { return Reg != unsigned(Other); }
+ // MSVC requires that we explicitly declare these two as well.
+ bool operator==(MCPhysReg Other) const { return Reg == unsigned(Other); }
+ bool operator!=(MCPhysReg Other) const { return Reg != unsigned(Other); }
};
// Provide DenseMapInfo for Register
OpenPOWER on IntegriCloud