Skip to content

Commit

Permalink
Fix CCN6101
Browse files Browse the repository at this point in the history
```
CCN6101 (W) A return value of type "bool" is expected.
```
  • Loading branch information
fjeremic committed Jun 29, 2021
1 parent a544b0f commit e3150dc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/compile/ResolvedMethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ char * TR_ResolvedMethod::localName (uint32_t, uint32_t, int32_t&, TR_Memo
char * TR_ResolvedMethod::fieldNameChars(int32_t, int32_t &) { TR_UNIMPLEMENTED(); return 0; }
char * TR_ResolvedMethod::fieldSignatureChars(int32_t, int32_t &) { TR_UNIMPLEMENTED(); return 0; }
char * TR_ResolvedMethod::staticSignatureChars(int32_t, int32_t &) { TR_UNIMPLEMENTED(); return 0; }
void * & TR_ResolvedMethod::addressOfClassOfMethod() { TR_UNIMPLEMENTED(); }
void * & TR_ResolvedMethod::addressOfClassOfMethod() { TR_UNIMPLEMENTED(); throw std::exception(); }
uint32_t TR_ResolvedMethod::vTableSlot(uint32_t) { TR_UNIMPLEMENTED(); return 0; }
bool TR_ResolvedMethod::virtualMethodIsOverridden() { TR_UNIMPLEMENTED(); return false; }
void TR_ResolvedMethod::setVirtualMethodIsOverridden() { TR_UNIMPLEMENTED(); }
Expand Down
1 change: 1 addition & 0 deletions compiler/ilgen/OMRIlBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ TR::IlValue *
OMR::IlBuilder::NewValue(TR::IlType *dt)
{
TR_ASSERT_FATAL(0, "should not create a value without a TR::Node");
return 0;
}

TR::IlValue *
Expand Down
2 changes: 2 additions & 0 deletions compiler/optimizer/LoopVersioner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9162,6 +9162,8 @@ bool TR_LoopVersioner::guardOkForExpr(TR::Node *node, bool onlySearching)
node,
(int)kind);
}

return false;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions compiler/z/env/OMRCPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ OMR::Z::CPU::setSupportsMiscellaneousInstructionExtensions2Facility(bool value)
{
_flags.reset(S390SupportsMIE2);
}

return value;
}

bool
Expand Down

0 comments on commit e3150dc

Please sign in to comment.