diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-04-22 04:18:32 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-04-22 04:18:32 +0000 |
commit | fe0cdf989939036bc70329bc3ced2ff25d975908 (patch) | |
tree | 1339fc5ca4eb3eeeec7085efcdf0ae5afc499d26 /llvm/lib/TableGen | |
parent | e8005f90f5505f9ca406d56d167ec0db0fbc5ea8 (diff) | |
download | bcm5719-llvm-fe0cdf989939036bc70329bc3ced2ff25d975908.tar.gz bcm5719-llvm-fe0cdf989939036bc70329bc3ced2ff25d975908.zip |
[TableGen] Make BitRecTy::baseClassOf return true when RHS is an IntRecTy.
Previously the code was accidentally checking if 'this' was an IntRecTy which it can't be since 'this' is a BitRecTy. Looking back at the history it appears it was intended to check RHS.
llvm-svn: 235477
Diffstat (limited to 'llvm/lib/TableGen')
-rw-r--r-- | llvm/lib/TableGen/Record.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp index 80696822705..c032bc19251 100644 --- a/llvm/lib/TableGen/Record.cpp +++ b/llvm/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<BitsRecTy>(RHS)) return BitsTy->getNumBits() == 1; |