Skip to content

Commit

Permalink
fixed typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmdis1999 committed Mar 8, 2024
1 parent 928a3b1 commit 1d108f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/lib/Transforms/Yk/StackMaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include "llvm/IR/Verifier.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/Yk/LivenessAnalysis.h"
#include "llvm/Transforms/Yk/ControlPoint.h"
#include "llvm/Transforms/Yk/LivenessAnalysis.h"
#include <map>

#define DEBUG_TYPE "yk-stackmaps"
Expand Down Expand Up @@ -60,12 +60,12 @@ class YkStackmaps : public ModulePass {
// We don't need to insert stackmaps after intrinsics. But since we
// can't tell if an indirect call is an intrinsic at compile time,
// emit a stackmap in those cases too.

if (!CI.isIndirectCall() &&
(CI.getCalledFunction()->isIntrinsic() ||
(CI.getCalledFunction()->isDeclaration() &&
(!CI.getCalledFunction()->getName().startswith(
"yk_promote") &&
"__yk_promote") &&
CI.getCalledFunction()->getName() != YK_NEW_CONTROL_POINT))))
continue;

Expand Down

0 comments on commit 1d108f6

Please sign in to comment.