summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Sentence-case bug type, and pull tests from region-only-test.c into ↵Ted Kremenek2009-11-063-25/+37
| | | | | | misc-ps-region.store.m (removing an extra unneeded test file). Also add a bunch of FIXME comments for future enhancements. llvm-svn: 86282
* fix typoGabor Greif2009-11-061-0/+0
| | | | llvm-svn: 86281
* Fix a problem discovered on self host.Chris Lattner2009-11-062-1/+23
| | | | llvm-svn: 86278
* Simplify the debug info code, handle lvalue references and template ↵Anders Carlsson2009-11-063-13/+37
| | | | | | specializations. llvm-svn: 86277
* This patch fixes code gen. part of pr5333 (ConversionFariborz Jahanian2009-11-062-1/+27
| | | | | | using elipsis conversion). llvm-svn: 86276
* Handle QualifiedNameType and SubstTemplateTypeParmType types in ↵Anders Carlsson2009-11-062-0/+17
| | | | | | CGDebugInfo::CreateTypeNode. llvm-svn: 86274
* add test case for PR3135 which was already fixedNuno Lopes2009-11-061-0/+20
| | | | llvm-svn: 86273
* remove more code subsumed by r86264Chris Lattner2009-11-061-83/+17
| | | | llvm-svn: 86270
* Tolerate invalid derived type.Devang Patel2009-11-062-0/+17
| | | | llvm-svn: 86269
* Don't assert when trying to generate debug info for vector types. This needs ↵Anders Carlsson2009-11-061-0/+4
| | | | | | to be fixed eventually... llvm-svn: 86268
* eliminate some more code subsumed by r86264Chris Lattner2009-11-061-41/+4
| | | | llvm-svn: 86267
* remove now redundant code, r86264 handles this case.Chris Lattner2009-11-061-66/+0
| | | | llvm-svn: 86266
* Don't warn -Wsign-compare if we're in an unevaluated context, and fixedJohn McCall2009-11-062-1/+5
| | | | | | a typo pointed out by Fariborz. llvm-svn: 86265
* Extend jump threading to support much more general threadingChris Lattner2009-11-062-27/+356
| | | | | | | | | | | | | | | | | | | | predicates. This allows us to jump thread things like: _ZN12StringSwitchI5ColorE4CaseILj7EEERS1_RAT__KcRKS0_.exit119: %tmp1.i24166 = phi i8 [ 1, %bb5.i117 ], [ %tmp1.i24165, %_Z....exit ], [ %tmp1.i24165, %bb4.i114 ] %toBoolnot.i87 = icmp eq i8 %tmp1.i24166, 0 ; <i1> [#uses=1] %tmp4.i90 = icmp eq i32 %tmp2.i, 6 ; <i1> [#uses=1] %or.cond173 = and i1 %toBoolnot.i87, %tmp4.i90 ; <i1> [#uses=1] br i1 %or.cond173, label %bb4.i96, label %_ZN12... Where it is "obvious" that when coming from %bb5.i117 that the 'and' is always false. This triggers a surprisingly high number of times in the testsuite, and gets us closer to generating good code for doug's strswitch testcase. This also make a bunch of other code in jump threading redundant, I'll rip out in the next patch. This survived an enable-checking llvm-gcc bootstrap. llvm-svn: 86264
* update comment, pointed out by GaborChris Lattner2009-11-061-3/+1
| | | | llvm-svn: 86263
* Use WriteAsOperand to print GlobalAddress MachineOperands. ThisDan Gohman2009-11-061-1/+2
| | | | | | prints them with the leading '@'. llvm-svn: 86261
* add some const qualifiers, patch by Kovarththanan Rajaratnam!Chris Lattner2009-11-062-4/+4
| | | | llvm-svn: 86260
* Do not bother to emit debug info for nameless global variable.Devang Patel2009-11-063-2/+13
| | | | llvm-svn: 86259
* indirectbr seems to work! Rip out the old code.Chris Lattner2009-11-065-140/+0
| | | | llvm-svn: 86256
* Instead of returning a null DIType for unhandled types, assert.Anders Carlsson2009-11-061-9/+1
| | | | llvm-svn: 86254
* Add a checker for CWE-466: Return of Pointer Value Outside of Expected Range.Zhongxing Xu2009-11-066-0/+101
| | | | llvm-svn: 86252
* Pass StringRef by value.Daniel Dunbar2009-11-0651-200/+196
| | | | llvm-svn: 86251
* compare.c also needs a target triple now, and improve some comments while we'reJohn McCall2009-11-062-8/+8
| | | | | | at it. llvm-svn: 86243
* Improve the -Wsign-compare heuristics:John McCall2009-11-064-34/+417
| | | | | | | | | | | | | * If the unsigned type is smaller than the signed type, never warn, because its value will not change when zero-extended to the larger type. * If we're testing for (in)equality, and the unsigned value is an integer constant whose sign bit is not set, never warn, because even though the signed value might change, it can't affect the result of the equality. Also make the comparison test cases much more rigorous, and have them expose the subtle differences between C and C++ here. llvm-svn: 86242
* Create a warning group "non-gcc" for diagnostics which are not enabledJohn McCall2009-11-061-0/+4
| | | | | | | | by default in GCC. Users who want to emulate gcc's warning behavior exactly should be able to use CC="clang -Wno-non-gcc"; this should help projects to transition. llvm-svn: 86241
* add some fixit hints.Chris Lattner2009-11-062-2/+4
| | | | llvm-svn: 86240
* clang++ points out that this is pointless.Chris Lattner2009-11-061-1/+1
| | | | llvm-svn: 86239
* Rework the fix-it hint for code likeDouglas Gregor2009-11-064-16/+46
| | | | | | | | | | | get_origin->x where get_origin is actually a function and the user has forgotten the parentheses. Instead of giving a lame note for the fix-it, give a full-fledge error, early, then build the call expression to try to recover. llvm-svn: 86238
* remove some more Context arguments.Chris Lattner2009-11-063-5/+3
| | | | llvm-svn: 86235
* Improve recovery when we fail to parse the operand of a C++ named cast. ↵Douglas Gregor2009-11-062-7/+12
| | | | | | Fixes PR5210 llvm-svn: 86234
* Turn off -Wsign-compare warnings by defaultDouglas Gregor2009-11-067-8/+9
| | | | llvm-svn: 86233
* remove a bunch of extraneous LLVMContext argumentsChris Lattner2009-11-0620-289/+220
| | | | | | from various APIs, addressing PR5325. llvm-svn: 86231
* If a member variable of reference type is bound to a temporary in its member ↵Anders Carlsson2009-11-062-0/+22
| | | | | | initializer it needs to be destroyed at the end of the constructor. llvm-svn: 86230
* NewNighlytTest: Fix timestamp format to actually make sense (it was missing ↵Daniel Dunbar2009-11-061-1/+2
| | | | | | the hour). llvm-svn: 86229
* NewNightlyTest: Add -noclean option, which doesn't run 'make clean' before ↵Daniel Dunbar2009-11-061-6/+8
| | | | | | | | building LLVM (for testing). Also, switch to always running 'make clean' in the test-suite directories. llvm-svn: 86228
* NewNightlyTest: Unbreak passing the build directory via a positional argument.Daniel Dunbar2009-11-061-7/+7
| | | | llvm-svn: 86227
* NewNightlyTest: Add -llvmgccdir as alternative to environment variable.Daniel Dunbar2009-11-061-8/+15
| | | | llvm-svn: 86226
* If a member initializer create temporaries we need to destroy them. Fixes ↵Anders Carlsson2009-11-062-0/+40
| | | | | | PR5077. llvm-svn: 86225
* More cleanup.Anders Carlsson2009-11-061-73/+94
| | | | llvm-svn: 86224
* Cleanup ctor/dtor emission.Anders Carlsson2009-11-061-11/+12
| | | | llvm-svn: 86222
* Handle ParenExprs in mangleExpression.Anders Carlsson2009-11-062-0/+11
| | | | llvm-svn: 86218
* Refine the vcall for a function that is defined in a virtual baseMike Stump2009-11-062-7/+44
| | | | | | class that is overridden in a base that isn't morally virtual. llvm-svn: 86217
* static analyzer: refactor checking logic for returning the address of a ↵Ted Kremenek2009-11-069-146/+232
| | | | | | | | | stack variable or a garbage value into their own respective subclasses of Checker (and put them in .cpp files where their implementation details are hidden from GRExprEngine). llvm-svn: 86215
* Revert r86077 because it caused crashes in 179.art and 175.vpr on ARMVictor Hernandez2009-11-0619-244/+191
| | | | llvm-svn: 86213
* Do not try to emit debug info entry for dead global variable.Devang Patel2009-11-062-1/+23
| | | | llvm-svn: 86212
* If we have a C-style cast, functional cast, or a static_cast to aDouglas Gregor2009-11-062-2/+16
| | | | | | | | | | class type, don't perform the array-to-pointer or function-to-pointer conversions, because we may end up binding a reference to a function or array. With this change, FileCheck now passes -fsyntax-only! llvm-svn: 86211
* When we encounter a derived-to-base conversion when performing anDouglas Gregor2009-11-063-2/+28
| | | | | | | implicit conversion sequence, check the validity of this conversion and then perform it. llvm-svn: 86210
* Minor cleanup of my last patch.Fariborz Jahanian2009-11-061-1/+1
| | | | llvm-svn: 86209
* Minor cleanup: use BuiltinBug (which will soon be renamed) for ↵Ted Kremenek2009-11-066-14/+18
| | | | | | DeferenceChecker and friends so that they always report the same bug type. llvm-svn: 86208
* This patch implements Sema for clause 13.3.3.1p4.Fariborz Jahanian2009-11-064-11/+30
| | | | | | | It has to do with vararg constructors used as conversion functions. Code gen needs work. This is WIP. llvm-svn: 86207
OpenPOWER on IntegriCloud