llvm-project/clang/test
Vince Bridgers fe8b2236ef [analyzer] Fix "RhsLoc and LhsLoc bitwidth must be same"
clang: <root>/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:727:
void assertEqualBitWidths(clang::ento::ProgramStateRef,
  clang::ento::Loc, clang::ento::Loc): Assertion `RhsBitwidth ==
  LhsBitwidth && "RhsLoc and LhsLoc bitwidth must be same!"'

This change adjusts the bitwidth of the smaller operand for an evalBinOp
as a result of a comparison operation. This can occur in the specific
case represented by the test cases for a target with different pointer
sizes.

Reviewed By: NoQ

Differential Revision: https://reviews.llvm.org/D122513
2022-03-29 17:08:19 -05:00
..
APINotes
ARCMT Use functions with prototypes when appropriate; NFC 2022-02-17 15:33:50 -05:00
AST [clang] Produce a "multiversion" annotation in textual AST output. 2022-03-21 13:39:44 -04:00
ASTMerge Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
Analysis [analyzer] Fix "RhsLoc and LhsLoc bitwidth must be same" 2022-03-29 17:08:19 -05:00
CXX [clang][DR] Test and mark DR1305 as complete 2022-03-29 20:45:49 +02:00
ClangScanDeps Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
CodeCompletion Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
CodeGen [X86][regcall] Support passing / returning structures 2022-03-29 11:29:57 +08:00
CodeGenCUDA [CUDA][HIP] Fix hostness check with -fopenmp 2022-03-24 15:19:47 -04:00
CodeGenCUDASPIRV [CUDA][SPIRV] Assign global address space to CUDA kernel arguments 2022-02-24 20:51:43 -08:00
CodeGenCXX [Clang] Implement __builtin_source_location. 2022-03-28 18:29:02 -04:00
CodeGenCoroutines [Clang] Rename `disable-noundef-analysis` flag to `-[no-]enable-noundef-analysis` 2022-02-18 17:02:41 +09:00
CodeGenHIP [HIPSPV] Fix literals are mapped to Generic address space 2022-02-05 17:26:52 -05:00
CodeGenHLSL Add clang DirectX target support 2022-03-28 15:00:50 -05:00
CodeGenObjC Add -Wno-strict-prototypes to C tests; NFC 2022-02-24 15:30:30 -05:00
CodeGenObjCXX [Clang] Rename `disable-noundef-analysis` flag to `-[no-]enable-noundef-analysis` 2022-02-18 17:02:41 +09:00
CodeGenOpenCL [AMDGPU] Support gfx940 smfmac instructions 2022-03-24 12:40:42 -07:00
CodeGenOpenCLCXX [OpenCL] Add support of __opencl_c_device_enqueue feature macro. 2022-01-27 14:25:59 +03:00
CodeGenSYCL [SYCL] Disallow explicit casts between mismatching address spaces 2022-02-07 11:57:30 +03:00
Coverage Add -Wno-strict-prototypes to C tests; NFC 2022-02-24 15:30:30 -05:00
CoverageMapping [InstrProfiling] No runtime hook for unused funcs 2022-03-25 17:03:03 +00:00
Driver [RISCV][test] Make PATH empty when testing --gcc-toolchain is multilib_riscv_elf_sdk 2022-03-29 14:51:23 +08:00
ExtractAPI [clang][extract-api] Add Objective-C protocol support 2022-03-29 14:44:49 -07:00
FixIt [Clang] Support multiple attributes in a single pragma 2022-03-18 12:20:41 +00:00
Format
Frontend [clang][driver] Disable non-functional --version option for clang -cc1 2022-03-25 19:04:27 +01:00
Headers [CodeGen] Inline _byteswap_* builtins. 2022-03-16 16:18:51 -07:00
Import
Index [clang] Remove stdint.h include from a test 2022-03-21 14:30:12 -04:00
Integration Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
InterfaceStubs Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
Interpreter
Layout
Lexer [Clang][C++2b] P2242R3: Non-literal variables [...] in constexpr 2022-03-22 19:51:19 +01:00
LibClang
Misc [attributes] Generalize attribute 'enforce_tcb' to Objective-C methods. 2022-03-28 15:08:47 -07:00
Modules [C++20][Modules][HU 5/5] Add fdirectives-only mode for preprocessing output. 2022-03-28 07:38:22 +01:00
OpenMP [OpenMP] Regenerate the check lines for 2 tests 2022-03-29 10:00:03 -05:00
PCH [Clang] Work with multiple pragmas weak before definition 2022-03-24 20:17:49 -04:00
Parser [clang] Improve diagnostic for reopened inline namespace 2022-03-23 22:30:45 +01:00
ParserSYCL
Preprocessor Add HLSL Language Option and Preprocessor 2022-03-28 16:16:17 -05:00
Profile Revert "[misexpect] Re-implement MisExpect Diagnostics" 2022-03-29 06:20:30 +00:00
Refactor Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
Rewriter Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
Sema Fix a test failure. 2022-03-29 12:27:23 -04:00
SemaCUDA [CUDA][HIP] Fix hostness check with -fopenmp 2022-03-24 15:19:47 -04:00
SemaCXX [Clang] Implement __builtin_source_location. 2022-03-28 18:29:02 -04:00
SemaObjC Clang `unused-but-set-variable` warnings should not apply to `__attribute__((objc_precise_lifetime))` Objective-C pointers 2022-02-24 14:26:05 -08:00
SemaObjCXX Revert "[clang] roll-forward "[clang] Mark `trivial_abi` types as "trivially relocatable""." 2022-03-23 04:54:00 -07:00
SemaOpenCL [AMDGPU] Support gfx940 smfmac instructions 2022-03-24 12:40:42 -07:00
SemaOpenCLCXX [OpenCL] Add support of __opencl_c_device_enqueue feature macro. 2022-01-27 14:25:59 +03:00
SemaSYCL [SYCL] Disallow explicit casts between mismatching address spaces 2022-02-07 11:57:30 +03:00
SemaTemplate [clang] Propagate requires-clause from constructor template to implicit deduction guide 2022-03-25 02:46:22 -04:00
TableGen
Templight [Templight] Don't display empty strings for names of unnamed template parameters 2022-01-24 16:37:11 +01:00
Tooling
Unit Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00
VFS Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
clang-rename
utils/update_cc_test_checks Reapply [Utils] Fix %S substitution 2022-03-21 15:15:34 +01:00
.clang-format
CMakeLists.txt [cmake] Provide CURRENT_TOOLS_DIR centrally, replacing CLANG_TOOLS_DIR 2022-03-25 20:22:01 +01:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Add HLSL Language Option and Preprocessor 2022-03-28 16:16:17 -05:00
lit.site.cfg.py.in [cmake] Provide CURRENT_TOOLS_DIR centrally, replacing CLANG_TOOLS_DIR 2022-03-25 20:22:01 +01:00
make_test_dirs.pl