[llvm] 667e1f7 - IR: remove "else" after "return". NFCI.

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 9 07:01:04 PST 2020


Author: Tim Northover
Date: 2020-01-09T15:00:54Z
New Revision: 667e1f71b83c48b635b13b64bbff28b95e68265c

URL: https://github.com/llvm/llvm-project/commit/667e1f71b83c48b635b13b64bbff28b95e68265c
DIFF: https://github.com/llvm/llvm-project/commit/667e1f71b83c48b635b13b64bbff28b95e68265c.diff

LOG: IR: remove "else" after "return". NFCI.

Added: 
    

Modified: 
    llvm/lib/IR/Core.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index 63b98f26ba19..04e34a90a9bc 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) {


        


More information about the llvm-commits mailing list