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 30bb5f1 commit 9384136Copy full SHA for 9384136
llvm/lib/Transforms/Yk/ShadowStack.cpp
@@ -134,9 +134,11 @@ class YkShadowStack : public ModulePass {
134
// a name given by LLVM which could theoretically change. Luckily,
135
// this should all go away once we only move variables to the
136
// shadowstack that have their reference taken.
137
- if (ST->getName() == "YkCtrlPointVars" ||
138
- ST->getName() == "struct.YkLocation") {
139
- continue;
+ if (!ST->isLiteral()) {
+ if (ST->getName() == "YkCtrlPointVars" ||
+ ST->getName() == "struct.YkLocation") {
140
+ continue;
141
+ }
142
}
143
144
Builder.SetInsertPoint(&I);
0 commit comments