Small refactoring in RRCM.

This commit is contained in:
Xin Tong
2016-07-28 18:13:47 -07:00
parent c80b70f2f6
commit 34eadd43ee
4 changed files with 41 additions and 36 deletions

View File

@@ -46,10 +46,6 @@ namespace {
// Utility
//===----------------------------------------------------------------------===//
static bool isReleaseInstruction(SILInstruction *I) {
return isa<StrongReleaseInst>(I) || isa<ReleaseValueInst>(I);
}
static void createRefCountOpForPayload(SILBuilder &Builder, SILInstruction *I,
EnumElementDecl *EnumDecl,
SILValue DefOfEnum = SILValue()) {