summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorTim Northover <t.p.northover@gmail.com>2020-01-09 14:28:48 +0000
committerTim Northover <t.p.northover@gmail.com>2020-01-09 15:00:54 +0000
commit667e1f71b83c48b635b13b64bbff28b95e68265c (patch)
tree0d0a712931add6cb9a13d08a59c44944c457be1d /llvm/lib/IR/Core.cpp
parent4c11703b3d9d936214b8ced70bd6475974c317d8 (diff)
downloadbcm5719-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.cpp4
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) {
OpenPOWER on IntegriCloud