Skip to content

Commit

Permalink
Merge pull request #3605 from rwy0717/fix-switch
Browse files Browse the repository at this point in the history
Add missing default case to switch statement in X CodeGenerator
  • Loading branch information
0xdaryl authored Feb 23, 2019
2 parents c302887 + 0cba22d commit e6c6285
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compiler/x/codegen/OMRCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,17 +1076,18 @@ OMR::X86::CodeGenerator::supportsMergingGuards()
bool
OMR::X86::CodeGenerator::supportsNonHelper(TR::SymbolReferenceTable::CommonNonhelperSymbol symbol)
{
bool result = false;
bool result;

switch (symbol)
{
case TR::SymbolReferenceTable::atomicAddSymbol:
case TR::SymbolReferenceTable::atomicFetchAndAddSymbol:
case TR::SymbolReferenceTable::atomicSwapSymbol:
{
result = true;
break;
}
default:
result = false;
break;
}

return result;
Expand Down

0 comments on commit e6c6285

Please sign in to comment.