- Sep 17, 2015
-
-
Naomi Musgrave authored
Summary: For loop destroyed current instance before invoking next. Temporary variable added to prevent use-after-dtor when invoke destructor on current instance. Reviewers: eugenis Subscribers: llvm-commits, sanjoy Differential Revision: http://reviews.llvm.org/D12912 Rename temp var. llvm-svn: 247867
-
Eric Christopher authored
because it isn't being used on anything via the assembler right now. llvm-svn: 247866
-
Eric Christopher authored
llvm-svn: 247865
-
Eric Christopher authored
propagate to all callers/users/etc. llvm-svn: 247864
-
Chaoren Lin authored
llvm-svn: 247863
-
NAKAMURA Takumi authored
llvm-svn: 247862
-
Gabor Horvath authored
[Static Analyzer] Generics Checker: When an ObjC method returns a specialized object, track it properly. Differential Revision: http://reviews.llvm.org/D12889 llvm-svn: 247861
-
Reid Kleckner authored
It never really worked, and the new code is working better every day. llvm-svn: 247860
-
Devin Coughlin authored
The analyzer trims unnecessary nodes from the exploded graph before reporting path diagnostics. However, in some cases it can trim all nodes (including the error node), leading to an assertion failure (see https://llvm.org/bugs/show_bug.cgi?id=24184). This commit addresses the issue by adding two new APIs to CheckerContext to explicitly create error nodes. Unless the client provides a custom tag, these APIs tag the node with the checker's tag -- preventing it from being trimmed. The generateErrorNode() method creates a sink error node, while generateNonFatalErrorNode() creates an error node for a path that should continue being explored. The intent is that one of these two methods should be used whenever a checker creates an error node. This commit updates the checkers to use these APIs. These APIs (unlike addTransition() and generateSink()) do not take an explicit Pred node. This is because there are not any error nodes in the checkers that were created with an explicit different than the default (the CheckerContext's Pred node). It also changes generateSink() to require state and pred nodes (previously these were optional) to reduce confusion. Additionally, there were several cases where checkers did check whether a generated node could be null; we now explicitly check for null in these places. This commit also includes a test case written by Ying Yi as part of http://reviews.llvm.org/D12163 (that patch originally addressed this issue but was reverted because it introduced false positive regressions). Differential Revision: http://reviews.llvm.org/D12780 llvm-svn: 247859
-
Rafael Espindola authored
I don't intend to add full i686 support right now, just make sure we have all the infrastructure in place for it. llvm-svn: 247858
-
Chaoren Lin authored
Reviewers: zturner Subscribers: tberghammer, lldb-commits, danalbert Differential Revision: http://reviews.llvm.org/D12909 llvm-svn: 247857
-
Rui Ueyama authored
Only live symbols are written to the symbol table. Because isLive() returned false if dead-stripping was disabled entirely, only non-COMDAT sections were written to the symbol table. This patch fixes the issue. llvm-svn: 247856
-
Chaoren Lin authored
Works for gcc-4.8. A bug in gcc perhaps. llvm-svn: 247855
-
Rui Ueyama authored
llvm-svn: 247854
-
Rui Ueyama authored
This patch also makes the message less verbose. llvm-svn: 247853
-
Ryan Brown authored
The Go runtime schedules user level threads (goroutines) across real threads. This adds an OS plugin to create memory threads for goroutines. It supports the 1.4 and 1.5 go runtime. Differential Revision: http://reviews.llvm.org/D5871 llvm-svn: 247852
-
Reid Kleckner authored
I was constructing an object without filling in all the fields. llvm-svn: 247851
-
Chris Bieneman authored
This refactoring is to enable clang to re-use this code. llvm-svn: 247850
-
Davide Italiano authored
Symbol table is now populated correctly, but some fields are missing, they'll be added in the future. This patch also adds --discard-all flag, which was the default behavior until now. Differential Revision: http://reviews.llvm.org/D12874 llvm-svn: 247849
-
David Majnemer authored
The MSVC doesn't really support exception specifications so let's just turn these into cleanuppads. Later, we might use terminatepad to more efficiently encode the "noexcept"-ness of a function body. llvm-svn: 247848
-
Teresa Johnson authored
from outside the BitstreamWriter. Split out of patch D12536 (Function bitcode index in Value Symbol Table and lazy reading support), which will use it to patch in the VST offset. llvm-svn: 247847
-
Sanjoy Das authored
Summary: `signum(x)` is sometimes implemented as `(x >> 63) | (-x >>> 63)` (for an `i64` `x`). This change adds a matcher for that pattern, and an instcombine rule to optimize `signum(x) s< 1`. Later, we can also consider optimizing: icmp slt signum(x), 0 --> icmp slt x, 0 icmp sle signum(x), 1 --> true etc. Reviewers: majnemer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12703 llvm-svn: 247846
-
Reid Kleckner authored
llvm-svn: 247845
-
Reid Kleckner authored
Clang now passes the adjectives as an argument to catchpad. Getting the CatchObj working is simply a matter of threading another static alloca through codegen, first as an alloca, then as a frame index, and finally as a frame offset. llvm-svn: 247844
-
Reid Kleckner authored
This avoids building a fake LLVM IR global variable just to ferry an i32 down into LLVM codegen. It also puts a nail in the coffin of using MS ABI C++ EH with landingpads, since now we'll assert in the lpad code when flags are present. llvm-svn: 247843
-
Zachary Turner authored
Ncurses related symbols can either all be found in libnurses or split between libncurses and libtinfo. The main LLVM cmake scripts look for the setupterm symbol and stores the library that has it in TERMINFO_LIBS. This covers the split and unified ncurses case. LLDB uses symbols that can end up in libtinfo so this library should be pulled in if it is found. There is still an exotic case left where LLDB is configured with -DLLDB_DISABLE_CURSES=NO and LLVM with -DLLVM_ENABLE_TERMINFO=NO but misconfigurations will always be possible. Possibly a diagnostic could be added for that. This fixes bug 24693. Differential Revision: http://reviews.llvm.org/D12672 Patch by Jeremi Piotrowski llvm-svn: 247842
-
Zachary Turner authored
The implications of this bug where that "log disable windows" would not actually disable the log, and worse it would lock the file handle making it impossible to delete the file until lldb was shut down. This was then causing the test suite to fail, because the test suite tries to delete log files in certain situations. llvm-svn: 247841
-
Evgeniy Stepanov authored
error: width of bit-field 'allocated' (8 bits) exceeds the width of its type; value will be truncated to 1 bit [-Werror,-Wbitfield-width] llvm-svn: 247840
-
Rafael Espindola authored
The string table contains a file path, so addresses and offsets can be different on some setups. llvm-svn: 247839
-
Rafael Espindola authored
When DynamicSection is constructed we still don't know if there will be any dynamic relocations or not. llvm-svn: 247838
-
Rafael Espindola authored
llvm-svn: 247837
-
Paul Herman authored
Summary: Supports the parsing of the "using namespace XXX" and "using XXX::XXX" directives. Added ambiguity errors when it two decls with the same name are encountered (see comments in TestCppNsImport). Fixes using directives being duplicated for anonymous namespaces. Fixes GetDeclForUID for specification DIEs. Reviewers: sivachandra, chaoren, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12897 llvm-svn: 247836
-
David Majnemer authored
We are experimenting with a new approach to saving and restoring SSA values used across funclets: let the register allocator do the dirty work for us. However, this means that we need to be able to clone commoned blocks without relying on demotion. llvm-svn: 247835
-
David Majnemer authored
Split the preparation machinery into several functions, we will want to selectively enable/disable different parts of it for an alternative mechanism for dealing with cross-funclet uses. llvm-svn: 247834
-
Chris Bieneman authored
This resolves an issue building compiler-rt using Xcode 7 that was reported on llvm-dev: http://lists.llvm.org/pipermail/llvm-dev/2015-September/090245.html llvm-svn: 247833
-
Argyrios Kyrtzidis authored
llvm-svn: 247832
-
Enrico Granata authored
llvm-svn: 247831
-
Zachary Turner authored
This test seems to be working now, probably due to r244764. llvm-svn: 247830
-
Adrian McCarthy authored
Differential Revision: http://reviews.llvm.org/D12888 llvm-svn: 247829
-
Anton Yartsev authored
- scan-build help: display 'Could not query Clang for the list of available checkers.' + the reason why it happened so if clang was not found. - display requested/forced help in case of --use-analyzer=Xcode. llvm-svn: 247828
-