summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-10-01 23:43:16 +0000
committerChris Lattner <sabre@nondot.org>2010-10-01 23:43:16 +0000
commit07e96866a231deab5b9d7c84e2936fd18cd2c7b5 (patch)
treea75ff70a283edb044b3eb3228c71d5ede731cfbd /clang/lib/CodeGen
parent407e7e3acef16273677e2a68025086113fe26178 (diff)
downloadbcm5719-llvm-07e96866a231deab5b9d7c84e2936fd18cd2c7b5.tar.gz
bcm5719-llvm-07e96866a231deab5b9d7c84e2936fd18cd2c7b5.zip
tidy
llvm-svn: 115383
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 443b7c089f5..c87fa90f2ef 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -43,9 +43,9 @@ static void EmitMemoryBarrier(CodeGenFunction &CGF,
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 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD,
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()));
}
OpenPOWER on IntegriCloud