diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp index 80696822705..c032bc19251 100644 --- a/lib/TableGen/Record.cpp +++ b/lib/TableGen/Record.cpp @@ -133,7 +133,7 @@ Init *BitRecTy::convertValue(TypedInit *VI) { } bool BitRecTy::baseClassOf(const RecTy *RHS) const{ - if(RecTy::baseClassOf(RHS) || getRecTyKind() == IntRecTyKind) + if(RecTy::baseClassOf(RHS) || RHS->getRecTyKind() == IntRecTyKind) return true; if(const BitsRecTy *BitsTy = dyn_cast(RHS)) return BitsTy->getNumBits() == 1;