diff options
author | Tim Northover <t.p.northover@gmail.com> | 2020-01-09 14:28:48 +0000 |
---|---|---|
committer | Tim Northover <t.p.northover@gmail.com> | 2020-01-09 15:00:54 +0000 |
commit | 667e1f71b83c48b635b13b64bbff28b95e68265c (patch) | |
tree | 0d0a712931add6cb9a13d08a59c44944c457be1d /llvm/lib/IR/Core.cpp | |
parent | 4c11703b3d9d936214b8ced70bd6475974c317d8 (diff) | |
download | bcm5719-llvm-667e1f71b83c48b635b13b64bbff28b95e68265c.tar.gz bcm5719-llvm-667e1f71b83c48b635b13b64bbff28b95e68265c.zip |
IR: remove "else" after "return". NFCI.
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
-rw-r--r-- | llvm/lib/IR/Core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp index 63b98f26ba1..04e34a90a9b 100644 --- a/llvm/lib/IR/Core.cpp +++ b/llvm/lib/IR/Core.cpp @@ -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) { |