Skip to content

Commit

Permalink
IR: remove "else" after "return". NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
TNorthover committed Jan 9, 2020
1 parent 4c11703 commit 667e1f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/IR/Core.cpp
Expand Up @@ -147,9 +147,9 @@ LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID,
// After r362128, byval attributes need to have a type attribute. Provide a
// NULL one until a proper API is added for this.
return wrap(Attribute::getWithByValType(Ctx, NULL));
} else {
return wrap(Attribute::get(Ctx, AttrKind, Val));
}

return wrap(Attribute::get(Ctx, AttrKind, Val));
}

unsigned LLVMGetEnumAttributeKind(LLVMAttributeRef A) {
Expand Down

0 comments on commit 667e1f7

Please sign in to comment.