Issue |
144579
|
Summary |
[llvm] Triple string has inconsistency in the object format component when the value equals to the default
|
Labels |
new issue
|
Assignees |
|
Reporter |
royitaqi
|
Read [this code](https://github.com/llvm/llvm-project/blob/e29bb9a038245320164c5890d1a75843e4a664ef/llvm/lib/TargetParser/Triple.cpp#L1622-L1636).
Repro steps:
1. Create a Triple: "arch-vendor-os-env".
2. Call `triple.SetObjectFormat()` to set it to the same format of `getDefaultFormat()`. The object format component would be added.
3. Call `triple.SetEnvironment()` to set the same environment. The object format component would be removed.
4. One can then repeat step 2 and 3 to add/remove the object format component while it has always been the same object format.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs