- Nov 10, 2009
-
-
Duncan Sands authored
llvm-svn: 86683
-
Duncan Sands authored
llvm-svn: 86681
-
John McCall authored
although in this case we probably just run a risk of duplicating work; I can't think of how this could cause a bug. llvm-svn: 86680
-
John McCall authored
using directives, and fix a bug thereby exposed: since we're playing tricks with pointers, we need to make certain we're always using the same pointers for things. Also tweak an existing error message. llvm-svn: 86679
-
Duncan Sands authored
just throw them away. llvm-svn: 86678
-
Zhongxing Xu authored
llvm-svn: 86677
-
Victor Hernandez authored
Update computeArraySize() to use ComputeMultiple() to determine the array size associated with a malloc; also extend PerformHeapAllocSRoA() to check if the optimized malloc's arg had its highest bit set, so that it is safe for ComputeMultiple() to look through sext instructions while determining the optimized malloc's array size llvm-svn: 86676
-
Victor Hernandez authored
Add ComputeMultiple() analysis function that recursively determines if a Value V is a multiple of unsigned Base llvm-svn: 86675
-
John McCall authored
llvm-svn: 86674
-
Zhongxing Xu authored
This is reasonable because people know what they are doing when they intentionally dereference the pointer. So now we only emit warning when a pointer variable is use literally. llvm-svn: 86673
-
Chris Lattner authored
llvm-svn: 86672
-
Mike Stump authored
being generated. Add the most derived vtable pointer to the VTT. llvm-svn: 86671
-
Chris Lattner authored
of a computation. This fixes some infinite loops when dealing with TD that has no native types. llvm-svn: 86670
-
John McCall authored
This is a pretty minimal test case; I'll make a better one later. llvm-svn: 86669
-
Nick Lewycky authored
llvm-svn: 86668
-
Nick Lewycky authored
memory just like a store" with bug fixed (partial-overwrite.ll is the regression test). llvm-svn: 86667
-
Chris Lattner authored
llvm-svn: 86666
-
Anders Carlsson authored
When trying to assign a regular string literal to an Objective-C 'id' type or a pointer to an NSString, emit a code insertion hint that turns it into an Objective-C string. For example: @class NSString; @interface Test + (void)test:(NSString *)string; @end void g(NSString *a); void f() { NSString *a = "Foo"; g("Foo"); [Test test:"Foo"]; } will produce t.m:10:17: warning: incompatible pointer types initializing 'char [4]', expected 'NSString *' NSString *a = "Foo"; ^~~~~ @ t.m:11:5: warning: incompatible pointer types passing 'char [4]', expected 'NSString *' g("Foo"); ^~~~~ @ t.m:12:14: warning: incompatible pointer types sending 'char [4]', expected 'NSString *' [Test test:"Foo"]; ^~~~~ @ 3 diagnostics generated. llvm-svn: 86665
-
Anders Carlsson authored
llvm-svn: 86664
-
Zhongxing Xu authored
llvm-svn: 86663
-
Zhongxing Xu authored
llvm-svn: 86662
-
Anders Carlsson authored
llvm-svn: 86661
-
Zhongxing Xu authored
the argument is not an expression. llvm-svn: 86660
-
Anders Carlsson authored
If a function with a default argument is redefined and the new function also has a defualt argument then add a fixit hint that removes the default argument. Fixes PR5444. llvm-svn: 86659
-
Anders Carlsson authored
llvm-svn: 86658
-
Zhongxing Xu authored
llvm-svn: 86657
-
Oscar Fuentes authored
llvm-svn: 86656
-
Daniel Dunbar authored
llvm-svn: 86655
-
Daniel Dunbar authored
llvm-svn: 86654
-
Daniel Dunbar authored
llvm-svn: 86653
-
Zhongxing Xu authored
region, so that arithmetic within a memory chunk is allowed. llvm-svn: 86652
-
Bruno Cardoso Lopes authored
llvm-svn: 86651
-
Mike Stump authored
Start implementing VTTs. WIP. llvm-svn: 86650
-
Zhongxing Xu authored
getBaseRegion will be used in another method. llvm-svn: 86649
-
Chris Lattner authored
llvm-svn: 86648
-
Mike Stump authored
llvm-svn: 86647
-
Chris Lattner authored
just one level deep. On the testcase we go from getting this: F1: ; preds = %T2 %F = and i1 true, %cond ; <i1> [#uses=1] br i1 %F, label %X, label %Y to a fully threaded: F1: ; preds = %T2 br label %Y This changes gets us to the point where we're forming (too many) switch instructions on doug's strswitch testcase. llvm-svn: 86646
-
Chris Lattner authored
llvm-svn: 86645
-
Oscar Fuentes authored
releases. llvm-svn: 86644
-
Mike Stump authored
llvm-svn: 86643
-