- Dec 29, 2011
-
-
Craig Topper authored
Remove trailing spaces. Fix an assert to use && instead of || before string. Add same assert on similar code path. llvm-svn: 147335
-
rdar://problem/10568905Greg Clayton authored
Fixed an issue where our new accelerator tables could cause a crash when we got a full 32 bit hash match, yet a C string mismatch. We had a member variable in DWARFMappedHash::Prologue named "min_hash_data_byte_size" the would compute the byte size of HashData so we could skip hash data efficiently. It started out with a byte size value of 4. When we read the table in from disk, we would clear the atom array and read it from disk, and the byte size would still be set to 4. We would then, as we read each atom from disk, increment this count. So the byte size of the HashData was off, which means when we get a lookup whose 32 bit hash does matches, but the C string does NOT match (which is very very rare), then we try and skip the data for that hash and we would add an incorrect offset and get off in our parsing of the hash data and cause this crash. To fix this I added a few safeguards: 1 - I now correctly clear the hash data size when we reset the atom array using the new DWARFMappedHash::Prologue::ClearAtoms() function. 2 - I now correctly always let the AppendAtom() calculate the byte size of the hash (before we were doing things manually some times, which was correct, but not good) 3 - I also track if the size of each HashData is a fixed byte size or not, and "do the right thing" when we need to skip the data. 4 - If we do get off in the weeds, then I make sure to return an error and stop any further parsing from happening. llvm-svn: 147334
-
Rafael Espindola authored
llvm-svn: 147333
-
rdar://problem/10546739Greg Clayton authored
Fixed SBValue::GetValueAsUnsigned() and SBValue::GetValueAsSigned() calls to work for bitfields. llvm-svn: 147332
-
DeLesley Hutchins authored
llvm-svn: 147331
-
Greg Clayton authored
llvm-svn: 147330
-
Kostya Serebryany authored
llvm-svn: 147329
-
Kostya Serebryany authored
llvm-svn: 147328
-
Nick Lewycky authored
captured. This allows the tracker to look at the specific use, which may be especially interesting for function calls. Use this to fix 'nocapture' deduction in FunctionAttrs. The existing one does not iterate until a fixpoint and does not guarantee that it produces the same result regardless of iteration order. The new implementation builds up a graph of how arguments are passed from function to function, and uses a bottom-up walk on the argument-SCCs to assign nocapture. This gets us nocapture more often, and does so rather efficiently and independent of iteration order. llvm-svn: 147327
-
- Dec 28, 2011
-
-
Kostya Serebryany authored
llvm-svn: 147326
-
Greg Clayton authored
llvm-svn: 147325
-
Greg Clayton authored
vector that can be sized to fit. llvm-svn: 147324
-
Eli Friedman authored
llvm-svn: 147323
-
Kostya Serebryany authored
llvm-svn: 147322
-
Kostya Serebryany authored
llvm-svn: 147321
-
Kostya Serebryany authored
llvm-svn: 147320
-
Kostya Serebryany authored
[asan] enable memset/memcpy/memmove interceptors in asan-rt (in addition to those in the compiler module) llvm-svn: 147319
-
Richard Smith authored
clients. No functionality change. llvm-svn: 147318
-
Kostya Serebryany authored
llvm-svn: 147317
-
Kostya Serebryany authored
llvm-svn: 147316
-
Kostya Serebryany authored
llvm-svn: 147315
-
Bob Wilson authored
Patch by Jonathan Ragan-Kelley! llvm-svn: 147314
-
Rafael Espindola authored
Patch by Sylvestre Ledru. Fixes PR11673. llvm-svn: 147313
-
Rafael Espindola authored
llvm-svn: 147312
-
Benjamin Kramer authored
x87 math evaluates everything with 80 bits precision, so we have to set FLT_EVAL_METHOD to "2". llvm-svn: 147311
-
Hans Wennborg authored
It should not be supported in C++11, since that uses the C99 standard library, in which 'a' is a format specifier. llvm-svn: 147310
-
Nadav Rotem authored
Promotion of the mask operand needs to be done using PromoteTargetBoolean, and not padded with garbage. llvm-svn: 147309
-
Elena Demikhovsky authored
Matching MOVLP mask for AVX (265-bit vectors) was wrong. The failure was detected by conformance tests. llvm-svn: 147308
-
Nick Lewycky authored
llvm-svn: 147307
-
Zhongxing Xu authored
block-level expr. Currently CXXConstructExpr is always added as a block-level expr. This caused two problems for the analyzer (and potentially for the CFG-based codegen). 1. We have no way to know whether a ctor call is base or complete. 2. We have no way to know the destination object being contructed. llvm-svn: 147306
-
Raghesh Aloor authored
Use isl_map_dim_max to extract the details of the changed access relation. Only constant access functions are supported now. llvm-svn: 147305
-
Kostya Serebryany authored
llvm-svn: 147304
-
Kostya Serebryany authored
mach_override library. In this case chances are that functions from it will be called from mach_override_ptr() during ASan initialization. This may lead to crashes (if those functions are instrumented) or incorrect behavior (if the implementations differ). The attached patch renames mach_override_ptr() into __asan_mach_override_ptr() and makes the rest of the mach_override internals hidden. The corresponding AddressSanitizer bug is http://code.google.com/p/address-sanitizer/issues/detail?id=22 Patch by glider@google.com llvm-svn: 147303
-
Kostya Serebryany authored
[asan] make sure __asan_report_* functions are not inlined (so that they are not optimized away and are kept in the resulting library). Patch by glider@google.com llvm-svn: 147302
-
Kostya Serebryany authored
[asan] remove the test for cfree. 'man cfree' says: 'This function should never be used.' and this function is not found on many OSes we support. llvm-svn: 147301
-
Kostya Serebryany authored
llvm-svn: 147300
-
- Dec 27, 2011
-
-
Douglas Gregor authored
covers both declarations (@class) and definitions (@interface) of an Objective-C class. llvm-svn: 147299
-
Howard Hinnant authored
llvm-svn: 147298
-
Kostya Serebryany authored
llvm-svn: 147297
-
Rafael Espindola authored
llvm-svn: 147296
-