diff options
author | Bruce Forstall <brucefo@microsoft.com> | 2021-05-12 19:36:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 19:36:19 +0300 |
commit | 72e2c89e10086543954c3424b5fa3ad0cfb135d0 (patch) | |
tree | a2f44580fb77578514e80d2165835c9fa63498c1 /src/coreclr/jit/flowgraph.cpp | |
parent | 5297337e5b7db9feef81f612f3d4e70128c7fa55 (diff) |
Introduce enum for BasicBlock and loop flags (#52410)
* Introduce enum for BasicBlock and loop flags
This gives a better debugging experience in Visual Studio. It
also improves type checking: there were a few places still using
`unsigned` instead of `unsigned __int64` when manipulating
BasicBlock flags.
* Make sure debugreturn and contracts are disabled for the JIT build
* Convert GenTree flags, debug flags, and call flags to enums
* Remove bad GT_HWINTRINSIC copy/paste code from GenTree::GetRegSpillFlagByIdx
Diffstat (limited to 'src/coreclr/jit/flowgraph.cpp')
-rw-r--r-- | src/coreclr/jit/flowgraph.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coreclr/jit/flowgraph.cpp b/src/coreclr/jit/flowgraph.cpp index 5c24e7725d3..a76cc93dc40 100644 --- a/src/coreclr/jit/flowgraph.cpp +++ b/src/coreclr/jit/flowgraph.cpp @@ -321,7 +321,7 @@ BasicBlock* Compiler::fgCreateGCPoll(GCPollType pollType, BasicBlock* block) unsigned char lpIndex = top->bbNatLoopNum; // Update block flags - const unsigned __int64 originalFlags = top->bbFlags | BBF_GC_SAFE_POINT; + const BasicBlockFlags originalFlags = top->bbFlags | BBF_GC_SAFE_POINT; // We are allowed to split loops and we need to keep a few other flags... // @@ -812,8 +812,8 @@ GenTreeLclVar* Compiler::fgIsIndirOfAddrOfLocal(GenTree* tree) GenTreeCall* Compiler::fgGetStaticsCCtorHelper(CORINFO_CLASS_HANDLE cls, CorInfoHelpFunc helper) { - bool bNeedClassID = true; - unsigned callFlags = 0; + bool bNeedClassID = true; + GenTreeFlags callFlags = GTF_EMPTY; var_types type = TYP_BYREF; |