[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:
River Riddle 2020-03-06 19:18:13 -08:00
parent 8fef67a2c5
commit f240d303c2

View File

@ -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();
}