Without this we can encounter link errors or incorrect behaviour
at runtime as a result of the wrong function being referenced.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 38460 Build 38459: arc lint + arc unit
Event Timeline
llvm/lib/Transforms/IPO/LowerTypeTests.cpp | ||
---|---|---|
1890–1896 | This looks like it could collide with an existing function. Clang handles this in a few places by looping until it finds an available name. |
llvm/lib/Transforms/IPO/LowerTypeTests.cpp | ||
---|---|---|
1890–1896 | I was under the impression that this was already handled by setName (see http://llvm-cs.pcc.me.uk/lib/IR/Value.cpp#282 -> http://llvm-cs.pcc.me.uk/lib/IR/ValueSymbolTable.cpp#112 -> http://llvm-cs.pcc.me.uk/lib/IR/ValueSymbolTable.cpp#61), although it may be worth adding a test for this case. |
llvm/lib/Transforms/IPO/LowerTypeTests.cpp | ||
---|---|---|
1890–1896 | Ah, you're right. A test for that might be nice, but a comment might also be enough given that it's likely tested elsewhere. |
llvm/lib/Transforms/IPO/LowerTypeTests.cpp | ||
---|---|---|
1890–1896 | Okay, I've added a comment here. |
This looks like it could collide with an existing function. Clang handles this in a few places by looping until it finds an available name.