rjmccall added inline comments.

================
Comment at: clang/lib/Sema/SemaLookup.cpp:542
+    N = Decls.size();
+  }
+
----------------
This is going to fire on every single ordinary lookup that finds multiple 
declarations, right?  I haven't fully internalized the issue you're solving 
here, but this is a very performance-sensitive path in the compiler; there's a 
reason this code is written to very carefully only do extra work when we've 
detected in the loop below that we're in a hidden-declarations situation.  Is 
there any way we can restore that basic structure?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154503/new/

https://reviews.llvm.org/D154503

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

Reply via email to