javed.absar added inline comments.
================
Comment at: lib/IR/Value.cpp:688
if (auto *GO = dyn_cast<GlobalObject>(this)) {
+ if (isa<Function>(GO))
+ return 0;
----------------
Maybe a good idea to comment this change a bit
https://reviews.llvm.org/D46110