[PATCH] D43696: Reduce hash collisions for reference and pointer types

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 23 15:47:02 PST 2018


rsmith added a comment.

Looks reasonable, can you add a testcase that shows the ODR checker now distinguishes pointers/references to distinct types?



================
Comment at: lib/AST/ODRHash.cpp:581
+  void VisitType(const Type *T) {
+    ID.AddInteger(T->getTypeClass());
+  }
----------------
This looks redundant, the above `Visit(const Type*)` function seems to already do this.


Repository:
  rC Clang

https://reviews.llvm.org/D43696





More information about the cfe-commits mailing list