rnk added a comment.

I searched around, and I noticed that `VTableContext::getMethodVTableIndex` has 
the same implied contract that the caller must always provide a canonical 
declaration or things will break. It looks like it has three callers, and they 
all do this. We should probably sink the canonicalization into this helper as 
well and clean up the now-superfluous canonicalizations at the call site.


Repository:
  rC Clang

https://reviews.llvm.org/D46929



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to