File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ Type *ShadowStackGCLowering::GetConcreteStackEntryType(Function &F) {
173
173
bool ShadowStackGCLowering::doInitialization (Module &M) {
174
174
bool Active = false ;
175
175
for (Function &F : M) {
176
- if (F.hasGC () && F.getGC () == std::string ( " shadow-stack" ) ) {
176
+ if (F.hasGC () && F.getGC () == " shadow-stack" ) {
177
177
Active = true ;
178
178
break ;
179
179
}
@@ -292,8 +292,7 @@ void ShadowStackGCLowering::getAnalysisUsage(AnalysisUsage &AU) const {
292
292
// / runOnFunction - Insert code to maintain the shadow stack.
293
293
bool ShadowStackGCLowering::runOnFunction (Function &F) {
294
294
// Quick exit for functions that do not use the shadow stack GC.
295
- if (!F.hasGC () ||
296
- F.getGC () != std::string (" shadow-stack" ))
295
+ if (!F.hasGC () || F.getGC () != " shadow-stack" )
297
296
return false ;
298
297
299
298
LLVMContext &Context = F.getContext ();
You can’t perform that action at this time.
0 commit comments