We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d97b3 commit c86c2a2Copy full SHA for c86c2a2
llvm/lib/Transforms/IPO/LowerTypeTests.cpp
@@ -2453,6 +2453,17 @@ bool LowerTypeTestsModule::lower() {
2453
} else {
2454
Alias->setName(AliasName);
2455
}
2456
+
2457
+ if (auto *F = M.getFunction((AliasName + ".cfi").str())) {
2458
+ // Function can be an alias. In such case we need definition of .cfi
2459
+ // of aliasee.
2460
+ if (auto *CfiAleasee = M.getFunction((Aliasee + ".cfi").str())) {
2461
+ F->replaceAllUsesWith(CfiAleasee);
2462
+ F->eraseFromParent();
2463
+ } else {
2464
+ F->setName(Aliasee + ".cfi");
2465
+ }
2466
2467
2468
2469
0 commit comments