Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/coreclr/jit/gentree.h')
-rw-r--r--src/coreclr/jit/gentree.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/coreclr/jit/gentree.h b/src/coreclr/jit/gentree.h
index b78096914eb..b349a813286 100644
--- a/src/coreclr/jit/gentree.h
+++ b/src/coreclr/jit/gentree.h
@@ -2209,6 +2209,12 @@ public:
return (gtOper == GT_CNS_INT) && ((gtFlags & GTF_ICON_HDL_MASK) == handleType);
}
+ template <typename... T>
+ bool IsIconHandle(GenTreeFlags handleType, T... rest) const
+ {
+ return IsIconHandle(handleType) || IsIconHandle(rest...);
+ }
+
// Return just the part of the flags corresponding to the GTF_ICON_*_HDL flag.
// For non-icon handle trees, returns GTF_EMPTY.
GenTreeFlags GetIconHandleFlag() const