tidy


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115383 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGBuiltin.cpp b/lib/CodeGen/CGBuiltin.cpp
index 443b7c0..c87fa90 100644
--- a/lib/CodeGen/CGBuiltin.cpp
+++ b/lib/CodeGen/CGBuiltin.cpp
@@ -43,9 +43,9 @@
 
 static Value *EmitCastToInt(CodeGenFunction &CGF,
                             const llvm::Type *ToType, Value *Val) {
-  if (Val->getType()->isPointerTy()) {
+  if (Val->getType()->isPointerTy())
     return CGF.Builder.CreatePtrToInt(Val, ToType);
-  }
+
   assert(Val->getType()->isIntegerTy() &&
          "Used a non-integer and non-pointer type with atomic builtin");
   assert(Val->getType()->getScalarSizeInBits() <=
@@ -160,7 +160,7 @@
     if (Result.Val.isInt())
       return RValue::get(llvm::ConstantInt::get(VMContext,
                                                 Result.Val.getInt()));
-    else if (Result.Val.isFloat())
+    if (Result.Val.isFloat())
       return RValue::get(ConstantFP::get(VMContext, Result.Val.getFloat()));
   }