summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-03-15 21:24:04 +0000
committerReid Kleckner <rnk@google.com>2018-03-15 21:24:04 +0000
commit5a791ee4081469d65d98fe02d4c767b455f6f69b (patch)
tree1fcef27558e2fac244bb1b1bb402218e986975d5 /llvm/lib/MC/MCObjectStreamer.cpp
parente9dc30d2c2add1bdc363a517f87d5a5ae26d094d (diff)
downloadbcm5719-llvm-5a791ee4081469d65d98fe02d4c767b455f6f69b.tar.gz
bcm5719-llvm-5a791ee4081469d65d98fe02d4c767b455f6f69b.zip
Re-land r327620 "[CodeView] Initial support for emitting S_BLOCK32 symbols for lexical scopes"
This is safe to land now that we don't copy FunctionInfo when rehashing the DenseMap. llvm-svn: 327670
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index 9c69a5a962d..0a684588110 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -55,6 +55,7 @@ void MCObjectStreamer::flushPendingLabels(MCFragment *F, uint64_t FOffset) {
// tree for (Hi - Lo) when Hi and Lo are offsets into the same fragment.
static Optional<uint64_t> absoluteSymbolDiff(const MCSymbol *Hi,
const MCSymbol *Lo) {
+ assert(Hi && Lo);
if (!Hi->getFragment() || Hi->getFragment() != Lo->getFragment() ||
Hi->isVariable() || Lo->isVariable())
return None;
OpenPOWER on IntegriCloud