aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorZhou Sheng <zhousheng00@gmail.com>2009-01-30 09:44:49 +0000
committerZhou Sheng <zhousheng00@gmail.com>2009-01-30 09:44:49 +0000
commitc0425b646f726de9b2422bc48ec316c4be9f6d7f (patch)
tree5d3c4d98ab1acd5f30ffabb083430783a64890d7 /lib/CodeGen
parent904ebf9bf4e6487892cda2e89b8e6d40803e4733 (diff)
As Duncan suggested, add braces for the one-line "else branch".
Thanks, Duncan. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/IntrinsicLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp
index 0ef9706668..e893a06699 100644
--- a/lib/CodeGen/IntrinsicLowering.cpp
+++ b/lib/CodeGen/IntrinsicLowering.cpp
@@ -533,8 +533,9 @@ static Instruction *LowerPartSet(CallInst *CI) {
Lo = new ZExtInst(Lo_pn, ValTy, "", entry);
} else if (ValBits < 32) {
Lo = new TruncInst(Lo_pn, ValTy, "", entry);
- } else
+ } else {
Lo = Lo_pn;
+ }
// Determine if the replacement bits are larger than the number of bits we
// are replacing and deal with it.
ICmpInst* is_large =