summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/CodeView
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-11-01 19:36:29 +0000
committerReid Kleckner <rnk@google.com>2018-11-01 19:36:29 +0000
commit46ff186b2938c089ffa05f1999d63ed3a4583411 (patch)
tree5ec20887faee2352b34bc04af97ae8410680cbd9 /llvm/lib/DebugInfo/CodeView
parentbebc53f838c38fc2d3cd9e990fa0284497beae61 (diff)
downloadbcm5719-llvm-46ff186b2938c089ffa05f1999d63ed3a4583411.tar.gz
bcm5719-llvm-46ff186b2938c089ffa05f1999d63ed3a4583411.zip
[codeview] Add breaks to fix -Wimplicit-fallthrough
This is a minor bug fix. Previously, if you tried to encode the RSP register on the x86 platform, that might have succeeded and been encoded incorrectly. However, no existing producer or consumer passes the x86_64 registers when targeting x86_32. llvm-svn: 345879
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView')
-rw-r--r--llvm/lib/DebugInfo/CodeView/SymbolRecordMapping.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/SymbolRecordMapping.cpp b/llvm/lib/DebugInfo/CodeView/SymbolRecordMapping.cpp
index e73c69fff44..2af8205cebc 100644
--- a/llvm/lib/DebugInfo/CodeView/SymbolRecordMapping.cpp
+++ b/llvm/lib/DebugInfo/CodeView/SymbolRecordMapping.cpp
@@ -529,6 +529,7 @@ EncodedFramePtrReg codeview::encodeFramePtrReg(RegisterId Reg, CPUType CPU) {
default:
break;
}
+ break;
case CPUType::X64:
switch (Reg) {
case RegisterId::RSP:
@@ -540,6 +541,7 @@ EncodedFramePtrReg codeview::encodeFramePtrReg(RegisterId Reg, CPUType CPU) {
default:
break;
}
+ break;
}
return EncodedFramePtrReg::None;
}
OpenPOWER on IntegriCloud