mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-30 13:47:32 +00:00
[mlir] Explicitly qualify Effect to avoid MSVC build failure
MSVC qualifies the Effect reference contextually depending on where the template is instantiated, leading to compiler failures if there is a different Effect class defined.
This commit is contained in:
parent
8fef67a2c5
commit
f240d303c2
@ -1301,7 +1301,7 @@ public:
|
||||
static ClassID *getEffectID() { return ClassID::getID<DerivedEffect>(); }
|
||||
|
||||
/// 'classof' used to support llvm style cast functionality.
|
||||
static bool classof(const Effect *effect) {
|
||||
static bool classof(const ::mlir::SideEffects::Effect *effect) {
|
||||
return effect->getEffectID() == BaseT::getEffectID();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user