summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorPeter Smith <peter.smith@linaro.org>2017-06-06 10:22:49 +0000
committerPeter Smith <peter.smith@linaro.org>2017-06-06 10:22:49 +0000
commitd16c55de6daa506d1f4a650fb1416bc7a50d7bf8 (patch)
tree0ac7f965eaacedcc1b58f1959667fefb2f228012 /llvm/lib
parent61eaa63b65e7f0ba6c906d2372ad66c07e9d392c (diff)
downloadbcm5719-llvm-d16c55de6daa506d1f4a650fb1416bc7a50d7bf8.tar.gz
bcm5719-llvm-d16c55de6daa506d1f4a650fb1416bc7a50d7bf8.zip
[ARM] Add curly braces around switch case [NFC]
My previous commit r304702 introduced a new case into a switch statement. This case defined a variable but I forgot to add the curly brackets around the case to limit the scope. This change puts the curly braces back in so that the next person that adds a case doesn't get a build failure. Thanks to avieira for the spot. Differential Revision: https://reviews.llvm.org/D33931 llvm-svn: 304785
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
index 2ac9b98d98c..d99e9b6df80 100644
--- a/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
+++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
@@ -695,7 +695,7 @@ unsigned ARMAsmBackend::adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
return 0;
}
return Value;
- case ARM::fixup_t2_so_imm:
+ case ARM::fixup_t2_so_imm: {
Value = ARM_AM::getT2SOImmVal(Value);
if ((int64_t)Value < 0) {
Ctx.reportError(Fixup.getLoc(), "out of range immediate fixup value");
@@ -712,6 +712,7 @@ unsigned ARMAsmBackend::adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
EncValue |= (Value & 0xff);
return swapHalfWords(EncValue, IsLittleEndian);
}
+ }
}
void ARMAsmBackend::processFixupValue(const MCAssembler &Asm,
OpenPOWER on IntegriCloud