[PATCH] D44582: [Builtins] Fix calling long double math functions on x86_64 mingw

2018-03-19 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo abandoned this revision. mstorsjo added a comment. Fixed the issue via https://reviews.llvm.org/D44592 instead, thanks @efriedma for the pointers! Repository: rC Clang https://reviews.llvm.org/D44582 ___ cfe-commits mailing list cfe-com

[PATCH] D44606: [analyzer] Fix the crash in `IteratorChecker.cpp` when `SymbolConjured` has a null Stmt.

2018-03-19 Thread Henry Wong via Phabricator via cfe-commits
MTC updated this revision to Diff 139075. MTC added a comment. Add the comments as suggested by @szepet . Repository: rC Clang https://reviews.llvm.org/D44606 Files: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp test/Analysis/loop-widening.c Index: test/Analysis/loop-widening.c =

[PATCH] D44671: [libcxx] Enable static libcxxabi linking on Darwin

2018-03-19 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. I would imagine there was a reason this configuration was unsupported on macOS – perhaps something to do with libc++/libc++abi being the default system libraries on that platform? Comment at: libcxx/CMakeLists.txt:330 # Check that this option is no

[PATCH] D44673: Make positionToOffset return llvm::Expected

2018-03-19 Thread Simon Marchi via Phabricator via cfe-commits
simark created this revision. Herald added subscribers: cfe-commits, ioeric, jkorous-apple, ilya-biryukov, klimek. simark added a reviewer: ilya-biryukov. To implement incremental document syncing, we want to verify that the ranges provided by the front-end are valid. Currently, positionToOffset

[PATCH] D44295: [clang-tidy] Detects and fixes calls to grand-...parent virtual methods instead of calls to parent's virtual methods

2018-03-19 Thread Zinovy Nis via Phabricator via cfe-commits
zinovy.nis added a comment. Gentle ping) Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D44295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44672: [CodeGen] Disable UBSan for coroutine functions

2018-03-19 Thread Brian Gesiak via Phabricator via cfe-commits
modocache created this revision. modocache added reviewers: GorNishanov, vsk, eric_niebler, lewissbaker. As explained in http://lists.llvm.org/pipermail/llvm-dev/2018-March/121924.html, the LLVM coroutines transforms are not yet able to move the instructions for UBSan null checking past coroutine

[PATCH] D44671: [libcxx] Enable static libcxxabi linking on Darwin

2018-03-19 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. phosek added reviewers: EricWF, mclow.lists, compnerd, beanz. Herald added subscribers: cfe-commits, christof, mgorny. This seems to be working without any problems. Repository: rCXX libc++ https://reviews.llvm.org/D44671 Files: libcxx/CMakeLists.txt Index:

[PATCH] D40775: [libcxx] Add underscores to win32 locale headers.

2018-03-19 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. We don't usually do this in source files, because they don't get included in people's builds - just the library build. if you look in src/mutex.cpp, you'll see stuff like: `void __call_once(volatile unsigned long& flag, void* arg, void(*func)(void*))` On the other h

r327945 - Properly construct `inline` members without initializers

2018-03-19 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Mon Mar 19 20:27:44 2018 New Revision: 327945 URL: http://llvm.org/viewvc/llvm-project?rev=327945&view=rev Log: Properly construct `inline` members without initializers Digging through commit logs, it appears the checks in this block predate `inline` class variables. With them,

[PATCH] D44670: [CXX] Templates specialization visibility can be wrong

2018-03-19 Thread Steven Wu via Phabricator via cfe-commits
steven_wu created this revision. steven_wu added reviewers: rsmith, arphaman. Under some conditions, LinkageComputer can get the visibility for ClassTemplateSpecializationDecl wrong because it failed to find the Decl that has the explicit visibility. This fixes: llvm.org/bugs/pr36810 rdar://probl

[PATCH] D44557: [analyzer] CStringChecker.cpp - Code refactoring on bug report.

2018-03-19 Thread Henry Wong via Phabricator via cfe-commits
MTC added a comment. In https://reviews.llvm.org/D44557#1042357, @NoQ wrote: > Sorry, one moment, i'm seeing a few regressions after the previous > refactoring but i didn't look at them closely yet to provide a reproducer. > I'll get back to this. Thank you for the code review, @NoQ ! The re

[PATCH] D39562: [CodeGen][ObjC] Fix an assertion failure caused by copy elision

2018-03-19 Thread Akira Hatanaka via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL327939: [CodeGen] Ignore OpaqueValueExprs that are unique references to their (authored by ahatanak, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llv

r327939 - [CodeGen] Ignore OpaqueValueExprs that are unique references to their

2018-03-19 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Mon Mar 19 18:47:58 2018 New Revision: 327939 URL: http://llvm.org/viewvc/llvm-project?rev=327939&view=rev Log: [CodeGen] Ignore OpaqueValueExprs that are unique references to their source expressions when iterating over a PseudoObjectExpr's semantic subexpression list. Pre

[PATCH] D44606: [analyzer] Fix the crash in `IteratorChecker.cpp` when `SymbolConjured` has a null Stmt.

2018-03-19 Thread Henry Wong via Phabricator via cfe-commits
MTC added a comment. > Just in case: we indeed do not guarantee that `SymbolConjured` corresponds to > a statement; it is, however, not intended, but rather a bug. Thank you for your explanation and the reasonable example, NoQ. Repository: rC Clang https://reviews.llvm.org/D44606 ___

[PATCH] D44606: [analyzer] Fix the crash in `IteratorChecker.cpp` when `SymbolConjured` has a null Stmt.

2018-03-19 Thread Henry Wong via Phabricator via cfe-commits
MTC added a comment. > One small nit for future debugging people: Could you insert a comment line in > the test case where you explain what is this all about? E.g what you just > have written in the description: "invalidateRegions() will construct the > SymbolConjured with null Stmt" or somethi

r327935 - [analyzer] Improve performance of NoStoreFuncVisitor

2018-03-19 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Mon Mar 19 18:16:46 2018 New Revision: 327935 URL: http://llvm.org/viewvc/llvm-project?rev=327935&view=rev Log: [analyzer] Improve performance of NoStoreFuncVisitor Compute modifying frames lazily on demand. Differential Revision: https://reviews.llvm.org/D44503 M

[PATCH] D44655: [Sanitizer] Allow builtins for Cross-DSO CFI on Android

2018-03-19 Thread Evgenii Stepanov via Phabricator via cfe-commits
eugenis accepted this revision. eugenis added a comment. LGTM https://reviews.llvm.org/D44655 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44655: [Sanitizer] Allow builtins for Cross-DSO CFI on Android

2018-03-19 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC327932: Allow builtins for Cross-DSO CFI on Android (authored by phosek, committed by ). Changed prior to commit: https://reviews.llvm.org/D44655?vs=139062&id=139063#toc Repository: rC Clang https:/

r327932 - Allow builtins for Cross-DSO CFI on Android

2018-03-19 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Mar 19 17:56:08 2018 New Revision: 327932 URL: http://llvm.org/viewvc/llvm-project?rev=327932&view=rev Log: Allow builtins for Cross-DSO CFI on Android This is needed to avoid the test failure in case when compiler-rt is set as the default runtime library for Clang. Diff

[PATCH] D44655: [Sanitizer] Allow builtins for Cross-DSO CFI on Android

2018-03-19 Thread Petr Hosek via Phabricator via cfe-commits
phosek updated this revision to Diff 139062. phosek added a comment. SGTM, I've made the test even more explicit. https://reviews.llvm.org/D44655 Files: clang/test/Driver/sanitizer-ld.c Index: clang/test/Driver/sanitizer-ld.c =

[PATCH] D44655: [Sanitizer] Allow builtins for Cross-DSO CFI on Android

2018-03-19 Thread Evgenii Stepanov via Phabricator via cfe-commits
eugenis added a comment. Since the test is about cfi, not builtins, I think it's better to check for the cfi library explicitly. Repository: rC Clang https://reviews.llvm.org/D44655 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

[PATCH] D44663: [libcxx] Update with R9 changes

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. timshen added a reviewer: mclow.lists. Herald added subscribers: christof, sanjoy. Herald added a reviewer: EricWF. - change the uses of abi_for_size to simd_abi::deduce. - remove the const in const_where_expression's template. https://reviews.llvm.org/D44663 File

[PATCH] D44665: [libcxx] Update synopsis to P0214R9

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. timshen added a reviewer: mclow.lists. Herald added subscribers: christof, sanjoy. Herald added a reviewer: EricWF. Herald added a reviewer: EricWF. https://reviews.llvm.org/D44665 Files: libcxx/include/experimental/simd libcxx/test/std/experimental/simd/simd.ac

[PATCH] D44664: [libcxx] Add missing __simd_reference pieces based on R9.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. timshen added a reviewer: mclow.lists. Herald added subscribers: christof, sanjoy. Herald added a reviewer: EricWF. https://reviews.llvm.org/D44664 Files: libcxx/include/experimental/simd libcxx/test/std/experimental/simd/simd.access/default.pass.cpp libcxx/te

[PATCH] D44659: [libcxx] Optimize -O0 performance for operators

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. timshen added a reviewer: mclow.lists. Herald added subscribers: christof, sanjoy. Herald added a reviewer: EricWF. When vector extension (__attribute__((vector_size(... is available use its operators, instead of generating loops of scalar operations. https://r

[PATCH] D44660: [libcxx] unroll the loops in for Clang, until LLVM bugs are fixed

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. timshen added a reviewer: mclow.lists. Herald added subscribers: christof, sanjoy. Herald added a reviewer: EricWF. https://reviews.llvm.org/D44660 Files: libcxx/include/experimental/simd Index: libcxx/include/experimental/simd ==

[PATCH] D44661: [libcxx] optimize reduce(), hmin(), hmax() by reordering the operations.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. timshen added a reviewer: mclow.lists. Herald added subscribers: christof, sanjoy. Herald added a reviewer: EricWF. Also change std::plus<_Tp> to std::plus<>/__simd_plus_op, so that the optimization can transparently use the simd<> overloading. https://reviews.llvm

[PATCH] D44655: [Sanitizer] Allow builtins for Cross-DSO CFI on Android

2018-03-19 Thread Petr Hosek via Phabricator via cfe-commits
phosek added a comment. I was actually thinking about doing the same now, more specifically using `-rtlib=platform` which is already used elsewhere in this test. Do you prefer one or the other? Repository: rC Clang https://reviews.llvm.org/D44655 _

[PATCH] D44662: [libcxx] In , optimize masked div and rem.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. timshen added a reviewer: mclow.lists. Herald added subscribers: christof, sanjoy. Herald added a reviewer: EricWF. This optimization is allowed by the semantics, as users shouldn't pass in values that may cause undefined behavior even those values are masked. http

[PATCH] D44655: [Sanitizer] Allow builtins for Cross-DSO CFI on Android

2018-03-19 Thread Evgenii Stepanov via Phabricator via cfe-commits
eugenis added a comment. Indeed! https://reviews.llvm.org/D44645 Repository: rC Clang https://reviews.llvm.org/D44655 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44658: [libcxx] Implement aligned load and store when compiled with Clang.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. timshen added a reviewer: mclow.lists. Herald added subscribers: christof, sanjoy. Herald added a reviewer: EricWF. Simply use __attribute__((align_value(...))). https://reviews.llvm.org/D44658 Files: libcxx/include/experimental/simd Index: libcxx/include/exper

[PATCH] D44657: [libcxx] fix a sanitizer-reported bug in

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. timshen added a reviewer: mclow.lists. Herald added subscribers: christof, sanjoy. Herald added a reviewer: EricWF. Herald added a reviewer: EricWF. In __simd_reference, the conversion between bool and mask integer is in wrong place. https://reviews.llvm.org/D44657

[PATCH] D44655: [Sanitizer] Allow builtins for Cross-DSO CFI on Android

2018-03-19 Thread Petr Hosek via Phabricator via cfe-commits
phosek added a comment. That link seems to be pointing to this change? Repository: rC Clang https://reviews.llvm.org/D44655 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41843: [libcxx] implement where expressions.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen updated this revision to Diff 139043. timshen added a comment. Herald added a subscriber: christof. Rebase. https://reviews.llvm.org/D41843 Files: libcxx/include/experimental/simd libcxx/test/std/experimental/simd/simd.whereexpr/const_where_expression.pass.cpp libcxx/test/std/exp

[PATCH] D41845: [libcxx] clean up and complete

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen updated this revision to Diff 139045. timshen added a comment. Herald added a subscriber: christof. Rebase. https://reviews.llvm.org/D41845 Files: libcxx/include/experimental/simd libcxx/test/std/experimental/simd/simd.cons/load.pass.cpp libcxx/test/std/experimental/simd/simd.mask

[PATCH] D44656: [libcxx] Add conversions between underlying non-portable types and simd/simd_mask types.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. timshen added a reviewer: mclow.lists. Herald added subscribers: christof, kristof.beyls, sanjoy. Herald added a reviewer: EricWF. Currently x86, PowerPC, and ARM are supported. https://reviews.llvm.org/D44656 Files: libcxx/include/experimental/__config libcxx

[PATCH] D41844: [libcxx] implement mask reductions

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen updated this revision to Diff 139044. timshen added a comment. Herald added a subscriber: christof. Rebase. https://reviews.llvm.org/D41844 Files: libcxx/include/experimental/simd libcxx/test/std/experimental/simd/simd.horizontal/hmax.pass.cpp libcxx/test/std/experimental/simd/sim

[PATCH] D41756: [libcxx] implement simd_mask<> casts and some horizontal operations.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen updated this revision to Diff 139042. timshen added a comment. Herald added a subscriber: christof. Rebase. https://reviews.llvm.org/D41756 Files: libcxx/include/experimental/simd libcxx/test/std/experimental/simd/simd.casts/to_compatible.pass.cpp libcxx/test/std/experimental/simd

[PATCH] D41422: [libcxx] implement operators and reduction.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen updated this revision to Diff 139040. timshen added a comment. Herald added a subscriber: christof. Rebase. https://reviews.llvm.org/D41422 Files: libcxx/include/experimental/simd libcxx/test/std/experimental/simd/simd.elementwise/clamp.pass.cpp libcxx/test/std/experimental/simd/s

[PATCH] D41412: [libcxx] implement concat() and split()

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen updated this revision to Diff 139038. timshen added a comment. Herald added a subscriber: christof. Rebase. https://reviews.llvm.org/D41412 Files: libcxx/include/experimental/simd libcxx/test/std/experimental/simd/simd.horizontal/concat.pass.cpp libcxx/test/std/experimental/simd/s

[PATCH] D41747: [libcxx] implement simd_mask<> and operators.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen updated this revision to Diff 139041. timshen added a comment. Herald added a subscriber: christof. Rebase. https://reviews.llvm.org/D41747 Files: libcxx/include/experimental/simd libcxx/test/std/experimental/simd/simd.elementwise/operators.pass.cpp libcxx/test/std/experimental/si

[PATCH] D41415: [libcxx] implement casts.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen updated this revision to Diff 139039. timshen added a comment. Herald added a subscriber: christof. Rebase. https://reviews.llvm.org/D41415 Files: libcxx/include/experimental/simd libcxx/test/std/experimental/simd/simd.casts/simd_cast.pass.cpp libcxx/test/std/experimental/simd/sim

[PATCH] D41376: [libcxx] Implement ABI for Clang/GCC vector extension, constructors, copy_from and copy_to.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen updated this revision to Diff 139037. timshen added a comment. Herald added a subscriber: christof. Rebase. https://reviews.llvm.org/D41376 Files: libcxx/include/__config libcxx/include/experimental/__config libcxx/include/experimental/simd libcxx/include/utility libcxx/test/s

[PATCH] D41148: [libcxx] implement declarations based on P0214R7.

2018-03-19 Thread Tim Shen via Phabricator via cfe-commits
timshen updated this revision to Diff 139036. timshen added a comment. Herald added a subscriber: christof. Rebase. https://reviews.llvm.org/D41148 Files: libcxx/include/experimental/__config libcxx/include/experimental/simd libcxx/test/std/experimental/simd/nothing_to_do.pass.cpp libcx

[PATCH] D44655: [Sanitizer] Allow builtins for Cross-DSO CFI on Android

2018-03-19 Thread Evgenii Stepanov via Phabricator via cfe-commits
eugenis accepted this revision. eugenis added a comment. This revision is now accepted and ready to land. See my comment in https://reviews.llvm.org/D44655, but this change is also fine with me. Repository: rC Clang https://reviews.llvm.org/D44655 _

r327926 - [analyzer] Fix the assertion failure when static globals are used in lambda by reference

2018-03-19 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Mon Mar 19 17:20:58 2018 New Revision: 327926 URL: http://llvm.org/viewvc/llvm-project?rev=327926&view=rev Log: [analyzer] Fix the assertion failure when static globals are used in lambda by reference Also use the opportunity to clean up the code and remove unneces

[PATCH] D44594: [analyzer] Fix the assertion failure when static globals are used in lambda by reference

2018-03-19 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC327926: [analyzer] Fix the assertion failure when static globals are used in lambda by… (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: ht

[PATCH] D44655: [Sanitizer] Allow builtins for Cross-DSO CFI on Android

2018-03-19 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. phosek added a reviewer: eugenis. Herald added subscribers: cfe-commits, srhines. This is needed to avoid the test failure in case when compiler-rt is set as the default runtime library for Clang. Repository: rC Clang https://reviews.llvm.org/D44655 Files: cla

[PATCH] D44491: Set dso_local for CFConstantStringClassReference

2018-03-19 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D44491 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44649: Set dso_local for guid decls

2018-03-19 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. Yep, these are pretty much always local. https://reviews.llvm.org/D44649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

[PATCH] D44652: [vfs] Don't bail out after a missing -ivfsoverlay file

2018-03-19 Thread Ben Langmuir via Phabricator via cfe-commits
benlangmuir created this revision. benlangmuir added reviewers: bruno, vsapsai. Herald added a subscriber: cfe-commits. This make -ivfsoverlay behave more like other fatal errors (e.g. missing -include file) by skipping the missing file instead of bailing out of the whole compilation. This makes i

[PATCH] D44645: [test] Fix Cross-DSO CFI Android sanitizer test for -rtlib=compiler-rt

2018-03-19 Thread Evgenii Stepanov via Phabricator via cfe-commits
eugenis added inline comments. Comment at: test/Driver/sanitizer-ld.c:517 // CHECK-CFI-CROSS-DSO-ANDROID: "{{.*}}ld{{(.exe)?}}" // CHECK-CFI-CROSS-DSO-ANDROID-NOT: libclang_rt. mgorny wrote: > (an alternative would be to replace this 'NOT' clause with more sp

[PATCH] D44536: Avoid segfault when destructor is not yet known

2018-03-19 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. I think Richard is probably catching up from a week at the C++ committee. To be clear, I am objecting to this; I think the destructor should clearly have been created at this point. I'm just hoping Richard will have an idea for how best to fix it. Repository: rC C

[PATCH] D44591: [AArch64] Add vmulxh_lane FP16 vector intrinsic

2018-03-19 Thread Abderrazek Zaafrani via Phabricator via cfe-commits
az updated this revision to Diff 139015. az added a comment. add LLVM codegen tests as suggested in the reviews. https://reviews.llvm.org/D44591 Files: clang/include/clang/Basic/arm_neon.td clang/lib/CodeGen/CGBuiltin.cpp clang/test/CodeGen/aarch64-v8.2a-neon-intrinsics.c llvm/test/Code

[PATCH] D44536: Avoid segfault when destructor is not yet known

2018-03-19 Thread Dimitry Andric via Phabricator via cfe-commits
dim added a comment. @rsmith, any objections? Repository: rC Clang https://reviews.llvm.org/D44536 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44646: Sema: in msvc compatibility mode, don't allow forceinline on variadics

2018-03-19 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT added a comment. In https://reviews.llvm.org/D44646#1042347, @efriedma wrote: > The compiler shouldn't inline functions which call va_start, whether or not > they're marked always_inline. That should work correctly, I think, at least > on trunk. (See https://reviews.llvm.org/D425

[PATCH] D43047: [Builtins] Overload __builtin_operator_new/delete to allow forwarding to usual allocation/deallocation functions.

2018-03-19 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. Thanks, this looks great. Comment at: lib/Sema/SemaExprCXX.cpp:3458 + } + TheCall->getCallee()->setType(OperatorNewOrDelete->getType()); + It would be nice

[PATCH] D44362: [clang] Change std::sort to llvm::sort in response to r327219

2018-03-19 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang added a comment. Ping for reviews please. Repository: rC Clang https://reviews.llvm.org/D44362 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

RE: [clang-tools-extra] r327833 - [clang-tidy] New check bugprone-unused-return-value

2018-03-19 Thread via cfe-commits
This should be fixed by r327911. Douglas Yung From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Behalf Of Galina Kistanova via cfe-commits Sent: Monday, March 19, 2018 13:13 To: Alexander Kornienko Cc: cfe-commits Subject: Re: [clang-tools-extra] r327833 - [clang-tidy] New check

[clang-tools-extra] r327911 - Fixup test to explicitly use -fexceptions since exceptions are disabled by default on the PS4 target.

2018-03-19 Thread Douglas Yung via cfe-commits
Author: dyung Date: Mon Mar 19 14:22:58 2018 New Revision: 327911 URL: http://llvm.org/viewvc/llvm-project?rev=327911&view=rev Log: Fixup test to explicitly use -fexceptions since exceptions are disabled by default on the PS4 target. Modified: clang-tools-extra/trunk/test/clang-tidy/bugprone

[PATCH] D44557: [analyzer] CStringChecker.cpp - Code refactoring on bug report.

2018-03-19 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Sorry, one moment, i'm seeing a few regressions after the previous refactoring but i didn't look at them closely yet to provide a reproducer. I'll get back to this. Repository: rC Clang https://reviews.llvm.org/D44557 ___ c

[PATCH] D44646: Sema: in msvc compatibility mode, don't allow forceinline on variadics

2018-03-19 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added a comment. What happens in the case that you have a variadic in C code marked with `__forceinline`? Does that also cause a warning with MSVC? Comment at: test/Sema/ms-forceinline-on-variadic.cpp:1 +// RUN: %clang_cc1 -emit-llvm -o - -triple i686-windows -verify

[PATCH] D44606: [analyzer] Fix the crash in `IteratorChecker.cpp` when `SymbolConjured` has a null Stmt.

2018-03-19 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Just in case: we indeed do not guarantee that `SymbolConjured` corresponds to a statement; it is, however, not intended, but rather a bug. Consider: 1void clang_analyzer_eval(bool); 2 3

[PATCH] D44646: Sema: in msvc compatibility mode, don't allow forceinline on variadics

2018-03-19 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. The compiler shouldn't inline functions which call va_start, whether or not they're marked always_inline. That should work correctly, I think, at least on trunk. (See https://reviews.llvm.org/D42556 .) If you want to warn anyway, that's okay. Repository: rC Clang

[PATCH] D44491: Set dso_local for CFConstantStringClassReference

2018-03-19 Thread Rafael Avila de Espindola via Phabricator via cfe-commits
espindola added a comment. ping https://reviews.llvm.org/D44491 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44649: Set dso_local for guid decls

2018-03-19 Thread Rafael Avila de Espindola via Phabricator via cfe-commits
espindola created this revision. espindola added reviewers: rnk, echristo. https://reviews.llvm.org/D44649 Files: lib/CodeGen/CodeGenModule.cpp test/CodeGenCXX/microsoft-templ-uuidof.cpp Index: test/CodeGenCXX/microsoft-templ-uuidof.cpp ==

[clang-tools-extra] r327885 - [clang-move] Fix move-used-helper-decls.cpp test.

2018-03-19 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Mar 19 12:05:53 2018 New Revision: 327885 URL: http://llvm.org/viewvc/llvm-project?rev=327885&view=rev Log: [clang-move] Fix move-used-helper-decls.cpp test. Modified: clang-tools-extra/trunk/test/clang-move/move-used-helper-decls.cpp Modified: clang-tools-extra/tru

[clang-tools-extra] r327902 - [clangd] Fix undefined behavior due to misaligned type cast

2018-03-19 Thread Jan Korous via cfe-commits
Author: jkorous Date: Mon Mar 19 13:26:18 2018 New Revision: 327902 URL: http://llvm.org/viewvc/llvm-project?rev=327902&view=rev Log: [clangd] Fix undefined behavior due to misaligned type cast The current code was casting pointer to a misaligned type which is undefined behavior. Found by compil

[clang-tools-extra] r327901 - [clangd][nfc] Give name to a magic constant

2018-03-19 Thread Jan Korous via cfe-commits
Author: jkorous Date: Mon Mar 19 13:26:15 2018 New Revision: 327901 URL: http://llvm.org/viewvc/llvm-project?rev=327901&view=rev Log: [clangd][nfc] Give name to a magic constant Modified: clang-tools-extra/trunk/clangd/index/Index.h Modified: clang-tools-extra/trunk/clangd/index/Index.h URL:

[PATCH] D44580: Sema: allow comparison between blocks & block-compatible objc types

2018-03-19 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT updated this revision to Diff 138996. DHowett-MSFT added a comment. Ran `clang-format` over changed lines. Reuploaded diff with full context. Repository: rC Clang https://reviews.llvm.org/D44580 Files: lib/Sema/SemaExpr.cpp test/SemaObjC/block-compare.mm Index: test/SemaOb

[PATCH] D44646: Sema: in msvc compatibility mode, don't allow forceinline on variadics

2018-03-19 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT updated this revision to Diff 138995. DHowett-MSFT added a comment. Fixed formatting. Repository: rC Clang https://reviews.llvm.org/D44646 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDeclAttr.cpp test/Sema/ms-forceinline-on-variadic.cpp Index: test/Sem

[PATCH] D39562: [CodeGen][ObjC] Fix an assertion failure caused by copy elision

2018-03-19 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Alright, LGTM. https://reviews.llvm.org/D39562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[PATCH] D44435: Add the module name to __cuda_module_ctor and __cuda_module_dtor for unique function names

2018-03-19 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: unittests/CodeGen/IncrementalProcessingTest.cpp:176-178 + +// In CUDA incremental processing, a CUDA ctor or dtor will be generated for +// every statement if a fatbinary file exists. SimeonEhrig wrote: > tra wrote: > > Sim

[PATCH] D44646: Sema: in msvc compatibility mode, don't allow forceinline on variadics

2018-03-19 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a reviewer: compnerd. smeenai added a comment. @DHowett-MSFT the reviewers look fine to me. Reid is the code owner for clang's MSVC compat support. David doesn't work on this stuff directly anymore, I think, but he's still pretty active in code reviews for it. I'm adding Saleem, w

Re: [clang-tools-extra] r327833 - [clang-tidy] New check bugprone-unused-return-value

2018-03-19 Thread Galina Kistanova via cfe-commits
Hello Alexander, This commit broke at least two of our builders: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/26909 http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast . . . Failing Tests (1): Clang Tools :: clang-tidy/bug

[PATCH] D44646: Sema: in msvc compatibility mode, don't allow forceinline on variadics

2018-03-19 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT added a comment. Apologies if I've chosen the wrong set of reviewers. Repository: rC Clang https://reviews.llvm.org/D44646 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D44646: Sema: in msvc compatibility mode, don't allow forceinline on variadics

2018-03-19 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT created this revision. DHowett-MSFT added reviewers: rnk, majnemer. DHowett-MSFT added a project: clang. Herald added subscribers: cfe-commits, eraman. The MSVC compiler rejects `__forceinline` on variadic functions with the following warning (at /https://reviews.llvm.org/W4): C47

[PATCH] D44645: [test] Fix Cross-DSO CFI Android sanitizer test for -rtlib=compiler-rt

2018-03-19 Thread Michał Górny via Phabricator via cfe-commits
mgorny added inline comments. Comment at: test/Driver/sanitizer-ld.c:517 // CHECK-CFI-CROSS-DSO-ANDROID: "{{.*}}ld{{(.exe)?}}" // CHECK-CFI-CROSS-DSO-ANDROID-NOT: libclang_rt. (an alternative would be to replace this 'NOT' clause with more specific library n

[PATCH] D44645: [test] Fix Cross-DSO CFI Android sanitizer test for -rtlib=compiler-rt

2018-03-19 Thread Michał Górny via Phabricator via cfe-commits
mgorny created this revision. mgorny added a reviewer: eugenis. Herald added subscribers: dberris, srhines. mgorny added inline comments. Comment at: test/Driver/sanitizer-ld.c:517 // CHECK-CFI-CROSS-DSO-ANDROID: "{{.*}}ld{{(.exe)?}}" // CHECK-CFI-CROSS-DSO-ANDROID-NOT: libclan

[PATCH] D43494: [Modules] Fix creating fake definition data for lambdas.

2018-03-19 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. I think we have agreement on this change. If there are no objections, I plan to commit it on Wednesday, March 21. https://reviews.llvm.org/D43494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[PATCH] D44630: [ms] Parse #pragma optimize and ignore it behind its own flag

2018-03-19 Thread Nico Weber via Phabricator via cfe-commits
thakis accepted this revision. thakis added a comment. Awesome, thanks! One nit below: Comment at: include/clang/Basic/DiagnosticParseKinds.td:973 +def warn_pragma_optimize : Warning< + "'#pragma optimize' is not supported; use '#pragma clang optimize on|off' instead">, + In

[PATCH] D44640: [CodeGen] Add funclet token to ARC marker

2018-03-19 Thread Shoaib Meenai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC327892: [CodeGen] Add funclet token to ARC marker (authored by smeenai, committed by ). Changed prior to commit: https://reviews.llvm.org/D44640?vs=138973&id=138983#toc Repository: rL LLVM https://r

[PATCH] D44640: [CodeGen] Add funclet token to ARC marker

2018-03-19 Thread Shoaib Meenai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL327892: [CodeGen] Add funclet token to ARC marker (authored by smeenai, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D44640?vs=138973&id=138

[PATCH] D44643: [Lex] Change HeaderSearchOptions arguments to std::string.

2018-03-19 Thread Frederich Munch via Phabricator via cfe-commits
marsupial created this revision. marsupial added reviewers: eugene, boris. marsupial added a project: clang. marsupial updated this revision to Diff 138982. Arguments passed to HeaderSearchOptions methods are stored as std::strings, having them converted to a StringRef at the call site can result

[PATCH] D44643: [Lex] Change HeaderSearchOptions arguments to std::string.

2018-03-19 Thread Frederich Munch via Phabricator via cfe-commits
marsupial updated this revision to Diff 138982. https://reviews.llvm.org/D44643 Files: include/clang/Lex/HeaderSearchOptions.h Index: include/clang/Lex/HeaderSearchOptions.h === --- include/clang/Lex/HeaderSearchOptions.h +++ inc

r327892 - [CodeGen] Add funclet token to ARC marker

2018-03-19 Thread Shoaib Meenai via cfe-commits
Author: smeenai Date: Mon Mar 19 12:34:39 2018 New Revision: 327892 URL: http://llvm.org/viewvc/llvm-project?rev=327892&view=rev Log: [CodeGen] Add funclet token to ARC marker The inline assembly generated for the ARC autorelease elision marker must have a funclet token if it's emitted inside a f

[PATCH] D44426: Fix llvm + clang build with Intel compiler

2018-03-19 Thread Melanie Blower via Phabricator via cfe-commits
mibintc added a comment. I added some inline comments. You are using the Intel 18.0 compiler on Windows - what version of Visual Studio is in the environment? Comment at: include/llvm-c/Target.h:25 -#if defined(_MSC_VER) && !defined(inline) +#if defined(_MSC_VER) && !defined

[PATCH] D44640: [CodeGen] Add funclet token to ARC marker

2018-03-19 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. LGTM. We should really just switch the reclaim to be marked with a bundle in the first place, but that's not a reasonable thing to ask you to do. Repository: rC Clang https://reviews.

[clang-tools-extra] r327887 - [clang-move] Fix the failing test caused by changes in clang-format.

2018-03-19 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Mar 19 12:13:03 2018 New Revision: 327887 URL: http://llvm.org/viewvc/llvm-project?rev=327887&view=rev Log: [clang-move] Fix the failing test caused by changes in clang-format. Modified: clang-tools-extra/trunk/test/clang-move/move-used-helper-decls.cpp Modified: cla

[PATCH] D44640: [CodeGen] Add funclet token to ARC marker

2018-03-19 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai created this revision. smeenai added reviewers: ahatanak, compnerd, majnemer, rjmccall, rnk. The inline assembly generated for the ARC autorelease elision marker must have a funclet token if it's emitted inside a funclet, otherwise the inline assembly (and all subsequent code in the funcle

[PATCH] D44606: [analyzer] Fix the crash in `IteratorChecker.cpp` when `SymbolConjured` has a null Stmt.

2018-03-19 Thread Peter Szecsi via Phabricator via cfe-commits
szepet added a comment. Nice catch, it looks good to me! Thank you! One small nit for future debugging people: Could you insert a comment line in the test case where you explain what is this all about? E.g what you just have written in the description: "invalidateRegions() will construct the Sy

[PATCH] D36918: [Sema] Take into account the current context when checking the accessibility of a member function pointer

2018-03-19 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. ping https://reviews.llvm.org/D36918 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44638: [clang-format] Fix ObjC selectors with multiple params passed to macro

2018-03-19 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton created this revision. benhamilton added reviewers: jolesiak, djasper, Wizard. Herald added subscribers: cfe-commits, klimek. Objective-C selectors can with arguments be in the form: foo: foo:bar: foo:bar:baz: These can be passed to a macro, like NS_SWIFT_NAME(): https://developer.a

r327873 - [OPENMP, NVPTX] Reworked castToType() function, NFC.

2018-03-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Mar 19 10:53:56 2018 New Revision: 327873 URL: http://llvm.org/viewvc/llvm-project?rev=327873&view=rev Log: [OPENMP, NVPTX] Reworked castToType() function, NFC. Reworked function castToType to use more frontend functionality rather than the backend. Modified: cfe/tr

[PATCH] D44619: [CodeGen] Add cleanup scope to EmitInlinedInheritingCXXConstructorCall

2018-03-19 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. Code looks good, but we should make the test more robust and self-documenting. Comment at: test/CodeGenCXX/inheriting-constructor-cleanup.cpp:22 +// CHECK-LABEL: define void @_Z1fv

[PATCH] D44095: [ObjC] Allow declaring __weak pointer fields in C structs in ObjC-ARC

2018-03-19 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. This was reverted in r327294 because it caused module-enabled builders to fail after I moved CXXRecordDecl::CanPassInRegisters to RecordDecl. I'm recommitting this patch with fixes to ASTDeclReader and ASTWriter. Repository: rC Clang https://reviews.llvm.org/D44095

r327870 - [ObjC] Allow declaring __weak pointer fields in C structs in ARC.

2018-03-19 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Mon Mar 19 10:38:40 2018 New Revision: 327870 URL: http://llvm.org/viewvc/llvm-project?rev=327870&view=rev Log: [ObjC] Allow declaring __weak pointer fields in C structs in ARC. This patch uses the infrastructure added in r326307 for enabling non-trivial fields to be declar

[PATCH] D44272: [clangd] Support incremental document syncing

2018-03-19 Thread Simon Marchi via Phabricator via cfe-commits
simark marked 3 inline comments as done. simark added inline comments. Comment at: clangd/DraftStore.cpp:61 + const Position &Start = Change.range->start; + size_t StartIndex = positionToOffset(Contents, Start); + if (StartIndex > Contents.length()) { -

r327868 - [OPENMP] Fix build with MSVC, NFC.

2018-03-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Mar 19 10:18:13 2018 New Revision: 327868 URL: http://llvm.org/viewvc/llvm-project?rev=327868&view=rev Log: [OPENMP] Fix build with MSVC, NFC. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp URL: htt

[PATCH] D44539: [Sema][Objective-C] Add check to warn when property of objc type has assign attribute

2018-03-19 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton added a comment. I wonder if this wouldn't be better as a clang-tidy check: https://github.com/llvm-mirror/clang-tools-extra/tree/master/clang-tidy/objc Repository: rC Clang https://reviews.llvm.org/D44539 ___ cfe-commits mailing lis

  1   2   >