llvm/lib
Justin Bogner b10244d092 PrologEpilogInserter: Avoid an infinite loop when MinCSFrameIndex == 0
Before r269750 we did the comparisons in this loop in signed ints so
that it DTRT when MinCSFrameIndex was 0. This was changed because it's
now possible for MinCSFrameIndex to be UINT_MAX, but that introduced a
bug when we were comparing `>= 0` - this is tautological in unsigned.

Rework the comparisons here to avoid issues with unsigned wrapping.

No test. I couldn't find a way to get any of the StackGrowsUp in-tree
targets to reach the code that sets MinCSFrameIndex.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270492 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-23 21:40:52 +00:00
..
Analysis fix formatting; NFC 2016-05-23 17:57:54 +00:00
AsmParser Refactor duplicated code. NFC. 2016-05-12 12:37:52 +00:00
Bitcode Avoid temporary vector for sorting in BitcodeWriter 2016-05-16 22:47:15 +00:00
CodeGen PrologEpilogInserter: Avoid an infinite loop when MinCSFrameIndex == 0 2016-05-23 21:40:52 +00:00
DebugInfo Fix struct member names and simplify. NFC. 2016-05-20 22:59:05 +00:00
ExecutionEngine [RuntimeDyld][MachO] Add support for SUBTRACTOR relocations between anonymous 2016-05-19 23:26:05 +00:00
Fuzzer [LibFuzzer] Fix implementation of `GetPeakRSSMb()` on Mac OSX. 2016-05-20 01:37:54 +00:00
IR Extract renaming from D19181 2016-05-23 16:38:25 +00:00
IRReader Remove autoconf support 2016-01-26 21:29:08 +00:00
LibDriver LibDriver: Silently do nothing when provided no inputs. 2016-04-13 19:36:04 +00:00
LineEditor Fix Clang-tidy modernize-deprecated-headers warnings in some files; other minor fixes. 2016-03-28 17:40:08 +00:00
Linker Return a StringRef from getSection. 2016-05-11 18:21:59 +00:00
LTO Delete Reloc::Default. 2016-05-18 22:04:49 +00:00
MC [MCExpr] avoid UB via negation of INT_MIN 2016-05-20 14:09:41 +00:00
Object Add the printing the Mach-O (__LLVM,__bundle) xar archive file section "verbosely" 2016-05-23 21:34:12 +00:00
ObjectYAML [MachOYAML] Removing duplicated field from LC_UUID YAML 2016-05-20 18:36:52 +00:00
Option Option parser: class for consuming a joined arg in addition to all remaining args 2016-04-15 00:23:30 +00:00
Passes New pass: guard widening 2016-05-18 22:55:34 +00:00
ProfileData [ProfileData] Thread unique_ptr through the summary builder to avoid leaks. 2016-05-20 09:18:37 +00:00
Support Enable use of sigaltstack for signal handlers when available. With this, 2016-05-23 06:47:37 +00:00
TableGen [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
Target [SPARC] Fix 8 and 16-bit atomic load and store. 2016-05-23 20:33:00 +00:00
Transforms tune lowering parameter for small apps (sjeng) 2016-05-23 19:29:26 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
LLVMBuild.txt Add LLVMBuild for ObjectYAML. 2016-03-01 21:29:33 +00:00