Also, some local variables have been renamed in accordance with the code
style as well as structure bindings from C++17 were introduced instead of
std::tie.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
@aeubanks Thank you for the review. This patch doesn't remove any asserts just reformats them. At least it should...
More structure bindings have been inserted in the foreach loops. Also, some inserts to maps were replaced with the try_emplace operations in order to eliminate redundant copies of pairs (but as I see those pairs are small enough but "no-copy" is better than "copy" even whenever this "no-copy" is for free).
I mean that code in #ifdef EXPENSIVE_CHECKS may use headers that aren't otherwise used, e.g. the existing
#include "llvm/ADT/ScopeExit.h"
but if that's fine then still lgtm
@aeubanks Oh, thank you for the comment. I tried to explicitly define EXPENSIVE_CHECK at the beginning of the LazyCallGraph.cpp file and LLVM has successfully been built. So, I've landed the patch.