mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-30 16:58:56 -04:00

This doesn't appear to be the cause of the slowdown. I'll have to try a manual bisect to see if there's really anything there, or if it's just the bot itself taking on additional load. Meanwhile, this change helps with correctness. This changes an assertion and adds a test case, then re-applies r180638, which was reverted in r180714. <rdar://problem/13296133> and PR15863 llvm-svn: 180864
17 lines
425 B
C
17 lines
425 B
C
// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
// Testing core functionality of the SValBuilder.
|
|
|
|
int SValBuilderLogicNoCrash(int *x) {
|
|
return 3 - (int)(x +3);
|
|
}
|
|
|
|
// http://llvm.org/bugs/show_bug.cgi?id=15863
|
|
// Don't crash when mixing 'bool' and 'int' in implicit comparisons to 0.
|
|
void pr15863() {
|
|
extern int getBool();
|
|
_Bool a = getBool();
|
|
(void)!a; // no-warning
|
|
}
|