mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
add pragma to internalBlocks predicate to fix performance
This commit is contained in:
@@ -303,6 +303,7 @@ abstract class BarrierGuardNode extends DataFlow::Node {
|
||||
*
|
||||
* INTERNAL: this predicate should only be used from within `blocks(boolean, Expr)`.
|
||||
*/
|
||||
pragma[noinline,nomagic]
|
||||
predicate internalBlocks(DataFlow::Node nd, string label) {
|
||||
// 1) `nd` is a use of a refinement node that blocks its input variable
|
||||
exists(SsaRefinementNode ref, boolean outcome |
|
||||
|
||||
@@ -125,7 +125,6 @@ module ExceptionXss {
|
||||
|
||||
override predicate isSanitizer(DataFlow::Node node) { node instanceof Xss::Shared::Sanitizer }
|
||||
|
||||
cached
|
||||
override predicate isAdditionalFlowStep(
|
||||
DataFlow::Node pred, DataFlow::Node succ, DataFlow::FlowLabel inlbl,
|
||||
DataFlow::FlowLabel outlbl
|
||||
|
||||
Reference in New Issue
Block a user