projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[MC] Don't crash on division by zero.
[oota-llvm.git]
/
lib
/
MC
/
MCDwarf.cpp
diff --git
a/lib/MC/MCDwarf.cpp
b/lib/MC/MCDwarf.cpp
index cfe58dae343cd55d86c0c2c4aa456d978107122b..2d8912b71f14875a4ef3279e6b2ae9d6c7b3feeb 100644
(file)
--- a/
lib/MC/MCDwarf.cpp
+++ b/
lib/MC/MCDwarf.cpp
@@
-220,7
+220,7
@@
MCDwarfLineTableHeader::Emit(MCStreamer *MCOS,
1 // DW_LNS_set_isa
};
assert(array_lengthof(StandardOpcodeLengths) >=
- (Params.DWARF2LineOpcodeBase - 1));
+ (Params.DWARF2LineOpcodeBase - 1
U
));
return Emit(MCOS, Params, ArrayRef<char>(StandardOpcodeLengths,
Params.DWARF2LineOpcodeBase - 1));
}