Without this we can encounter link errors or incorrect behaviour
at runtime as a result of the wrong function being referenced.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/lib/Transforms/IPO/LowerTypeTests.cpp | ||
---|---|---|
1890–1896 ↗ | (On Diff #221452) | 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 ↗ | (On Diff #221452) | 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 ↗ | (On Diff #221452) | 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 ↗ | (On Diff #221452) | Okay, I've added a comment here. |