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 982ef78 commit a9b10e1Copy full SHA for a9b10e1
IGC/Compiler/CISACodeGen/helper.cpp
@@ -2023,6 +2023,10 @@ namespace IGC
2023
Type* Int8PtrTy = llvm::Type::getInt8PtrTy(M.getContext());
2024
for (auto* V : Values) {
2025
Constant* C = V;
2026
+ //llvm will complain if members of llvm.uses doesn't have a name
2027
+ if(C->getName().empty())
2028
+ C->setName("gVar");
2029
+
2030
if (V->getType()->getAddressSpace() != 0)
2031
C = ConstantExpr::getAddrSpaceCast(V, Int8PtrTy);
2032
else
0 commit comments