llvm-project/clang/lib
Hubert Tong 35ecc7fe49 [clang][Sema] Fix PR47676: Handle dependent AltiVec C-style cast
Fix premature decision in the presence of type-dependent expression
operands on whether AltiVec vector initializations from single
expressions are "splat" operations.

Verify that the instantiation is able to determine the correct cast
semantics for both the scalar type and the vector type case.

Note that, because the change only affects the single-expression
case (and the target type is an AltiVec-style vector type), the
replacement of a parenthesized list with a parenthesized expression
does not change the semantics of the program in a program-observable
manner.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D88526
2020-10-01 15:57:01 -04:00
..
ARCMigrate With MSVC, file needs to be compiled with /BIGOBJ 2020-07-17 09:43:06 -07:00
AST [AST] do not error on APFloat invalidOp in default mode 2020-10-01 13:46:45 -04:00
ASTMatchers Improve dynamic AST matching diagnostics for conversion errors 2020-09-23 12:13:36 -04:00
Analysis [analyzer][Liveness][NFC] Get rid of statement liveness, because such a thing doesn't exist 2020-09-15 17:43:02 +02:00
Basic Handle unknown OSes in DarwinTargetInfo::getExnObjectAlignment 2020-09-30 16:05:17 -07:00
CodeGen [clang][opencl][codegen] Remove the insertion of `correctly-rounded-divide-sqrt-fp-math` fn-attr. 2020-10-01 11:07:39 -04:00
CrossTU [analyzer] Add CTUImportCppThreshold for C++ files 2020-07-09 15:36:33 +02:00
DirectoryWatcher [DirectoryWatcher] Do not use FSEvents on non-macOS platforms 2020-04-23 10:22:28 -07:00
Driver [AIX][Clang][Driver] Link libm in c++ mode 2020-09-30 14:02:17 -04:00
Edit [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
Format [clang-format] Add a MacroExpander. 2020-09-25 14:08:13 +02:00
Frontend Revert "[OpenMP] Add Error Handling for Conflicting Pointer Sizes for Target Offload" 2020-09-30 15:08:22 -04:00
FrontendTool [NFC] Refactor Registry loops to range for 2020-06-19 00:40:10 +01:00
Headers [X86] Support Intel Key Locker 2020-09-30 18:08:45 +08:00
Index [clang] Traverse init-captures while indexing 2020-09-22 02:32:09 -04:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Lex [Coverage] Add empty line regions to SkippedRegions 2020-09-21 12:42:53 -07:00
Parse Better diagnostics for anonymous bit-fields with attributes or an initializer. 2020-09-29 16:32:20 -04:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema [clang][Sema] Fix PR47676: Handle dependent AltiVec C-style cast 2020-10-01 15:57:01 -04:00
Serialization Revert "[Modules] Add stats to measure performance of building and loading modules." 2020-09-24 12:36:06 -07:00
StaticAnalyzer [Analyzer] Fix unused variable warning in Release builds 2020-09-25 14:09:43 +02:00
Testing Fix MSVC "not all control paths return a value" warning. NFC. 2020-06-05 10:45:59 +01:00
Tooling [Format] Don't treat compound extension headers (foo.proto.h) as foo.cc main-file header. 2020-10-01 19:57:57 +02:00
CMakeLists.txt Add an explicit toggle for the static analyzer in clang-tidy 2020-09-10 10:48:17 -04:00