- May 06, 2020
-
-
Jay Foad authored
-
Haojian Wu authored
Summary: The crash is triggered on accessing a null InitExpr. For group declaration, e.g. `auto c = a, &d = {a};`, what's happening: 1. each VarDecl is built separately during the parsing stage. 2. perform the semantic analysis (Sema::BuildDeclaratorGroup) to check whether the type of the two VarDecl is the same, if not mark it as invalid. in step 1, VarDecl c and d are built, both of them are valid (after D77395), but d is without the InitExpr attached (under -fno-recovery-ast), crash happens in step 2 when accessing the source range of d's InitExpr. Reviewers: sammccall Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79473 -
Richard Sandiford authored
It looks like it has been a while since the checked-in version of DiagnosticsReference.rst was regenerated. I realise there probably isn't any expectation that the checked-in version is kept up-to-date, but now that the project is on github and the rst can be viewed directly from the repo's web interface, it seemed worth having something a bit more recent. Differential Revision: https://reviews.llvm.org/D79236
-
Benjamin Kramer authored
-
David Spickett authored
This reverts commit d782d1f8 which caused test CodeGen/X86/sibcall.ll to fail.
-
Jaroslav Sevcik authored
Summary: This fixes a bug where frame var a[0]+5 returns the value a[0] without any warning because the current logic simply ignores everything after ']' as long as there is no '.', '-' or '[' in the rest of the string. The fix simplifies the termination condition of the expression path parsing loop to check if have a non-empty remaining string to parse. Previously, the condition checked if a separator was found. That condition coincided with the remaining string-to-parse condition except for the buggy indexed case where non-empty string was left ("+5" in the example above), but the separator index was 'npos'. Reviewed By: teemperor, labath Differential Revision: https://reviews.llvm.org/D79404 -
Xing GUO authored
This change adds tests for llvm-nm, llvm-objdump and llvm-size when dumping symbol tables with invalid sh_size (sh_size % sizeof(Elf_Sym) != 0). Reviewed By: jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D77864
-
David Spickett authored
-
Paula Toth authored
Reviewers: sivachandra Reviewed By: sivachandra Subscribers: gchatelet, mgorny, tschuett, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D79466
-
Konstantin Schwarz authored
Reviewers: arsenm, dsanders, aemerson, volkan, t.p.northover, paquette Reviewed By: arsenm Subscribers: gargaroff, wdng, rovka, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D78318
-
Dmitri Gribenko authored
Summary: The AST is different in C++17 in that there is no MaterializeTemporaryExpr for in the AST for a loop variable that is initialized from an iterator that returns its elements by value. Account for this by checking that the variable is not initialized by an operator* call that returns a value type. Reviewers: gribozavr2 Reviewed By: gribozavr2 Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79440
-
Uday Bondhugula authored
Drop trailing period in debug messages. Add an extra line for fusion debug info. Differential Revision: https://reviews.llvm.org/D79471
-
Vitaly Buka authored
Summary: -fsanitize=local-bounds is very similar to ``object-size`` and should also ignore volatile pointers. https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#volatile Reviewers: chandlerc, rsmith Reviewed By: rsmith Subscribers: cfe-commits, hiraditya, llvm-commits Tags: #llvm, #clang Differential Revision: https://reviews.llvm.org/D78607
-
Vitaly Buka authored
-
Vitaly Buka authored
Summary: Currently, realloc is marked as "discard" in done_abilist.txt. As discussed in PR#45583, this is probably not the expected behavior; a custom wrapper seems to be required. Since this wrapper has not been implemented yet, realloc should not be in the done_abilist.txt file so that a warning is displayed when it is called. Reviewers: kcc, pcc, vitalybuka Reviewed By: vitalybuka Subscribers: #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D78379
-
Craig Topper authored
-
Jan Korous authored
Differential Revision: https://reviews.llvm.org/D79451
-
Johannes Doerfert authored
This is the first step to resolve a TODO in AAMemoryLocation and to fix a bug we have when handling `byval` arguments of `readnone` call sites. No functional change intended.
-
Johannes Doerfert authored
-
Johannes Doerfert authored
-
Craig Topper authored
[X86] Allow Yz inline assembly constraint to choose ymm0 or zmm0 when avx/avx512 are enabled and type is 256 or 512 bits gcc supports selecting ymm0/zmm0 for the Yz constraint when used with 256 or 512 bit vector types. Fixes PR45806 Differential Revision: https://reviews.llvm.org/D79448
-
Puyan Lotfi authored
Just simplifying how the label name is generated while using std::to_string instead of Twine. Differential Revision: https://reviews.llvm.org/D79464
-
Jessica Paquette authored
Since G_ICMP can be selected to a SUBS, we can fold shifts into such compares. E.g. ``` cmp w1, w0, lsl #3 cmp w1, w0, lsr #3 cmp w1, w0, asr #3 ``` This is done the same way as for adds and subtracts, using `selectShiftedRegister`. This gives some minor code size savings on CTMark. https://reviews.llvm.org/D79365
-
Wenlei He authored
Summary: Add -detailed-summary support for sample profile dump to match that of instrumentation profile. Reviewers: wmi, davidxl, hoyFB Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79291
-
Justice Adams authored
Currently, when compiling to IR (presumably at the clang level) LLVM mangles symbols and sometimes they have illegal file characters including `?`'s in them. This causes a problem when building a graph via llc on Windows because the code currently passes the machine function name all the way down to the Windows API which frequently returns error 123 **ERROR_INVALID_NAME** https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499- Thus, we need to remove those illegal characters from the machine function name before generating a graph, which is the purpose of this patch. https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file I've created a static helper function replace_illegal_filename_chars which within GraphWriter.cpp to help with replacing illegal file character names before generating a dot graph filename. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D76863
-
Jonas Devlieghere authored
After 61d5b0e6 more shell test are expected to exit with a non-zero status code. Because the exit status is computed in the driver and not behind the SB API layer, reproducers don't know about it and always return 0 unless replay failed. This discrepancy means that these tests don't work with lldb-repro.py and skipping them for this reason would be a pity. To solve this problem, the script now serializes the exit code during capture and returns that during replay. These is an assert that ensures that replay exits with a zero exit status to prevent replay failures from being silently ignored.
-
Azharuddin Mohammed authored
This is in response to the recent move to Python 3. This reverts commit 5f4426e5.
-
Jason Molenda authored
Update CallBoardSystemServiceOpenApplication to unconditionally log the NSError's localizedDescription to Console on app launch failure (as it was already doing), and also to log the NSError object's full description to the console, which may contain additional nested error messages. I'm experimenting to find cases where we will get more detailed information from app launch failures and will start by logging both to the console. <rdar://problem/62709160>
-
Artem Belevich authored
Differential Revision: https://reviews.llvm.org/D79449
-
Sergej Jaskiewicz authored
Now that https://reviews.llvm.org/D78200 has landed, there should be no problem with those tests. If there is, it is OK to revert this.
-
Craig Topper authored
Similar to D77687, but for the X86 specific code. Differential Revision: https://reviews.llvm.org/D79381
-
Sergej Jaskiewicz authored
Summary: Instead of storing `static_test_env` (with all the symlinks) in the repo, we create it on the fly to be cross-toolchain-friendly. The primary use case for this are Windows-hosted cross-toolchains. Windows doesn't really have a concept of symlinks. So, when the monorepo is cloned, those symlinks turn to ordinary text files. Previously, if we cross-compiled libc++ for some symlink-friendly system (e. g. Linux) and ran tests on the target system, some tests would fail. This patch makes them pass. Reviewers: ldionne, #libc Reviewed By: ldionne, #libc Subscribers: EricWF, dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D78200
-
Sergej Jaskiewicz authored
This reverts commit 645ad5ba. This commit did not incorporate all the changes intended.
-
Reid Kleckner authored
Essentially takes the lld/Common/Threads.h wrappers and moves them to the llvm/Support/Paralle.h algorithm header. The changes are: - Remove policy parameter, since all clients use `par`. - Rename the methods to `parallelSort` etc to match LLVM style, since they are no longer C++17 pstl compatible. - Move algorithms from llvm::parallel:: to llvm::, since they have "parallel" in the name and are no longer overloads of the regular algorithms. - Add range overloads - Use the sequential algorithm directly when 1 thread is requested (skips task grouping) - Fix the index type of parallelForEachN to size_t. Nobody in LLVM was using any other parameter, and it made overload resolution hard for for_each_n(par, 0, foo.size(), ...) because 0 is int, not size_t. Remove Threads.h and update LLD for that. This is a prerequisite for parallel public symbol processing in the PDB library, which is in LLVM. Reviewed By: MaskRay, aganea Differential Revision: https://reviews.llvm.org/D79390
-
Christopher Tetreault authored
Summary: getLogBase2 tries to iterate over the number of vector elements. Since the number of elements of a scalable vector is unknown at compile time, we must return null if the input type is scalable. Identified by test LLVM.Transforms/InstCombine::nsw.ll Reviewers: efriedma, fpetrogalli, kmclaughlin, spatel Reviewed By: efriedma, fpetrogalli Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79197
-
Sergej Jaskiewicz authored
Instead of storing static_test_env (with all the symlinks) in the repo, we create it on the fly to be cross-toolchain-friendly. The primary use case for this are Windows-hosted cross-toolchains. Windows doesn't really have a concept of symlinks. So, when the monorepo is cloned, those symlinks turn to ordinary text files. Previously, if we cross-compiled libc++ for some symlink-friendly system (e. g. Linux) and ran tests on the target system, some tests would fail. This patch makes them pass. Differential Revision: https://reviews.llvm.org/D78200
-
Konrad Kleine authored
Summary: This fixes https://bugs.llvm.org/show_bug.cgi?id=44437. Thanks to Arnaud Desitter for providing the patch in the bug report! A simple example program to reproduce this error is this: ```lang=python import sys with open(sys.argv[0], 'r') as f: lines = f.readlines() lines = iter(lines) line = lines.next() print(line) ``` which will error with this in python python 3: ``` Traceback (most recent call last): File "./mytest.py", line 8, in <module> line = lines.next() AttributeError: 'list_iterator' object has no attribute 'next' ``` Here's the same strategy applied to my test program as applied to the `add_new_check.py` file: ```lang=python import sys with open(sys.argv[0], 'r') as f: lines = f.readlines() lines = iter(lines) line = next(lines) print(line) ``` The built-in function `next()` is new since Python 2.6: https://docs.python.org/2/library/functions.html#next Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79419
-
Artem Belevich authored
This reverts commit 55bcb96f.
-
Jonas Devlieghere authored
Updates Windows test for 61d5b0e6.
-
Jan Korous authored
-