Skip to content

Commit 667e1f7

Browse files
committed
IR: remove "else" after "return". NFCI.
1 parent 4c11703 commit 667e1f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/IR/Core.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID,
147147
// After r362128, byval attributes need to have a type attribute. Provide a
148148
// NULL one until a proper API is added for this.
149149
return wrap(Attribute::getWithByValType(Ctx, NULL));
150-
} else {
151-
return wrap(Attribute::get(Ctx, AttrKind, Val));
152150
}
151+
152+
return wrap(Attribute::get(Ctx, AttrKind, Val));
153153
}
154154

155155
unsigned LLVMGetEnumAttributeKind(LLVMAttributeRef A) {

0 commit comments

Comments
 (0)