Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceForstall committed Jul 8, 2021
1 parent 1ecd091 commit 35de73f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/coreclr/jit/emit.h
Expand Up @@ -247,6 +247,11 @@ struct insGroup
double igPerfScore; // The PerfScore for this insGroup
#endif

#ifdef DEBUG
BasicBlock* lastGeneratedBlock; // The last block that generated code into this insGroup.
jitstd::list<BasicBlock*> igBlocks; // All the blocks that generated code into this insGroup.
#endif

UNATIVE_OFFSET igNum; // for ordering (and display) purposes
UNATIVE_OFFSET igOffs; // offset of this group within method
unsigned int igFuncIdx; // Which function/funclet does this belong to? (Index into Compiler::compFuncInfos array.)
Expand Down Expand Up @@ -349,11 +354,6 @@ struct insGroup
return (igFlags & IGF_LOOP_ALIGN) != 0;
}

#ifdef DEBUG
BasicBlock* lastGeneratedBlock; // The last block that generated code into this insGroup.
jitstd::list<BasicBlock*> igBlocks; // All the blocks that generated code into this insGroup.
#endif

}; // end of struct insGroup

// For AMD64 the maximum prolog/epilog size supported on the OS is 256 bytes
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/instr.cpp
Expand Up @@ -92,12 +92,12 @@ const char* CodeGen::genInsDisplayName(emitter::instrDesc* id)
instruction ins = id->idIns();
const char* insName = genInsName(ins);

#ifdef TARGET_XARCH
const int TEMP_BUFFER_LEN = 40;
static unsigned curBuf = 0;
static char buf[4][TEMP_BUFFER_LEN];
const char* retbuf;

#ifdef TARGET_XARCH
if (GetEmitter()->IsAVXInstruction(ins) && !GetEmitter()->IsBMIInstruction(ins))
{
sprintf_s(buf[curBuf], TEMP_BUFFER_LEN, "v%s", insName);
Expand Down

0 comments on commit 35de73f

Please sign in to comment.