[llvm] [IR] Fix ignoring `non-global-value-max-name-size` in `ValueSymbolTable::makeUniqueName()`. (PR #89057)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 15:31:09 PDT 2024


================
@@ -79,7 +79,7 @@ using ProfileCount = Function::ProfileCount;
 // are not in the public header file...
 template class llvm::SymbolTableListTraits<BasicBlock>;
 
-static cl::opt<unsigned> NonGlobalValueMaxNameSize(
+static cl::opt<int> NonGlobalValueMaxNameSize(
----------------
serge-sans-paille wrote:

Maybe add a test for negative value then?

https://github.com/llvm/llvm-project/pull/89057


More information about the llvm-commits mailing list