[PATCH] D43563: TableGen: Get rid of Init::getFieldInit

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 10:11:10 PST 2018


tra added inline comments.


================
Comment at: lib/TableGen/Record.cpp:1377
 Init *FieldInit::resolveReferences(Record &R, const RecordVal *RV) const {
-  Init *NewRec = RV ? Rec->resolveReferences(R, RV) : Rec;
+  Init *NewRec = Rec->resolveReferences(R, RV);
 
----------------
assert(RV) as we no longer allow it to be nullptr.


Repository:
  rL LLVM

https://reviews.llvm.org/D43563





More information about the llvm-commits mailing list