summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit4b23938fb95c8681c3a2200ebbb405201a1ac73d (patch)
tree2439a96d89f846f407c3b32d0d8878b3430f78cc /llvm/lib
parent25b6f8153e341de4948d42b125e438fa79c508e8 (diff)
downloadbcm5719-llvm-4b23938fb95c8681c3a2200ebbb405201a1ac73d.tar.gz
bcm5719-llvm-4b23938fb95c8681c3a2200ebbb405201a1ac73d.zip
As Duncan suggested, add braces for the one-line "else branch".
Thanks, Duncan. llvm-svn: 63389
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/IntrinsicLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp
index 0ef9706668b..e893a06699c 100644
--- a/llvm/lib/CodeGen/IntrinsicLowering.cpp
+++ b/llvm/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 =
OpenPOWER on IntegriCloud