[PATCH] D31588: Fix PR25627: Certain constant local variables must be usable as template arguments (without being odr-used)

2017-05-21 Thread Faisal Vali via Phabricator via cfe-commits
faisalv closed this revision. faisalv added a comment. Committed here : https://reviews.llvm.org/rL303492 https://reviews.llvm.org/D31588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D29748: [cxx1z-constexpr-lambda] Implement captures - thus completing implementation of constexpr lambdas.

2017-05-21 Thread Faisal Vali via Phabricator via cfe-commits
faisalv closed this revision. faisalv added a comment. Closed by commit https://reviews.llvm.org/rL295279 https://reviews.llvm.org/D29748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D33385: __cxa_demangle: Fix constructor cv qualifier handling

2017-05-21 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added a comment. Can you please ensure that you cross-port this into `llvm/lib/Demangle/ItaniumDemangle.cpp`? https://reviews.llvm.org/D33385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D33368: [libcxxabi][demangler] Fix a crash in the demangler

2017-05-21 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added inline comments. Comment at: src/cxa_demangle.cpp:3042-3051 +for (size_t k = k0; k < k1; ++k) { +auto tmp = db.names[k].move_full(); +if (!tmp.empty()) +{ +

[PATCH] D33368: [libcxxabi][demangler] Fix a crash in the demangler

2017-05-21 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd requested changes to this revision. compnerd added inline comments. This revision now requires changes to proceed. Comment at: src/cxa_demangle.cpp:3036 break; -if (db.names.size() < 2) +if (k1 <= k0)

r303501 - [Format] Add curly braces to suppress a -Wmisleading-indentation warning from gcc.

2017-05-21 Thread Craig Topper via cfe-commits
Author: ctopper Date: Sun May 21 02:29:07 2017 New Revision: 303501 URL: http://llvm.org/viewvc/llvm-project?rev=303501=rev Log: [Format] Add curly braces to suppress a -Wmisleading-indentation warning from gcc. Modified: cfe/trunk/lib/Format/TokenAnnotator.cpp Modified:

[PATCH] D33170: [X86] Adding avx512_vpopcntdq feature set and its intrinsics

2017-05-21 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:7526 +llvm::Type *ResultType = ConvertType(E->getType()); +llvm::Function *F = CGM.getIntrinsic(Intrinsic::ctpop, ResultType); +return Builder.CreateCall(F, Ops); Why did the

[PATCH] D33170: [X86] Adding avx512_vpopcntdq feature set and its intrinsics

2017-05-21 Thread Oren Ben Simhon via Phabricator via cfe-commits
oren_ben_simhon updated this revision to Diff 99685. oren_ben_simhon marked an inline comment as done. oren_ben_simhon added a comment. Implemented comments posted until 05/20 (Thanks Craig) Repository: rL LLVM https://reviews.llvm.org/D33170 Files: include/clang/Basic/BuiltinsX86.def

[PATCH] D33259: Don't defer to the GCC driver for linking arm-baremetal

2017-05-21 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added inline comments. Comment at: cmake/caches/BaremetalARM.cmake:1 +set(LLVM_TARGETS_TO_BUILD ARM CACHE STRING "") + jroelofs wrote: > compnerd wrote: > > Please rename this file to `BareMetalARMv6.cmake`. (I'm interested in the > > suffix

[PATCH] D19201: [clang-tidy] misc-throw-with-noexcept

2017-05-21 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek accepted this revision. Prazek added a comment. LGTM, but wait if Aaron will accept it. https://reviews.llvm.org/D19201 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D19201: [clang-tidy] misc-throw-with-noexcept

2017-05-21 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added a comment. In https://reviews.llvm.org/D19201#760151, @aaron.ballman wrote: > As an FYI, there is a related check being implemented in clang currently; we > probably should not duplicate this effort. See > https://reviews.llvm.org/D3. I think that clang is the right place

[PATCH] D33333: Emit warning when throw exception in destruct or dealloc functions which has a (possible implicit) noexcept specifier

2017-05-21 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added a comment. Could you add similar tests as the ones that Stanislaw provied in his patch? Like the one with checking if throw is catched, or the conditional noexcept (by a macro, etc) https://reviews.llvm.org/D3 ___ cfe-commits

[PATCH] D33170: [X86] Adding avx512_vpopcntdq feature set and its intrinsics

2017-05-21 Thread Oren Ben Simhon via Phabricator via cfe-commits
oren_ben_simhon added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:7526 +llvm::Type *ResultType = ConvertType(E->getType()); +llvm::Function *F = CGM.getIntrinsic(Intrinsic::ctpop, ResultType); +return Builder.CreateCall(F, Ops);

[PATCH] D33385: __cxa_demangle: Fix constructor cv qualifier handling

2017-05-21 Thread Tamas Berghammer via Phabricator via cfe-commits
tberghammer created this revision. Previously if we parsed a constructor then we set parsed_ctor_dtor_cv to true and never reseted it. This causes issue when a template argument references a constructor (e.g. type of lambda defined inside a constructor) as we will have the parsed_ctor_dtor_cv

[PATCH] D33135: [ASTMatchers] Add support for floatLiterals

2017-05-21 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D33135#754278, @Lekensteyn wrote: > By the way, I think that `long double` is less common than long unsigned > literals, so changing unsigned to uint64_t might be something more important? I agree that it's likely a more common use

[PATCH] D33333: Emit warning when throw exception in destruct or dealloc functions which has a (possible implicit) noexcept specifier

2017-05-21 Thread Jennifer Yu via Phabricator via cfe-commits
jyu2 added a comment. In https://reviews.llvm.org/D3#760149, @aaron.ballman wrote: > As an FYI, there is a related check currently under development in > clang-tidy; we probably should not duplicate this functionality in both > places. See https://reviews.llvm.org/D19201 for the other

[PATCH] D19201: [clang-tidy] misc-throw-with-noexcept

2017-05-21 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D19201#760358, @Prazek wrote: > In https://reviews.llvm.org/D19201#760151, @aaron.ballman wrote: > > > As an FYI, there is a related check being implemented in clang currently; > > we probably should not duplicate this effort. See > >

[PATCH] D33333: Emit warning when throw exception in destruct or dealloc functions which has a (possible implicit) noexcept specifier

2017-05-21 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a reviewer: aaron.ballman. aaron.ballman added a comment. In https://reviews.llvm.org/D3#760419, @jyu2 wrote: > In https://reviews.llvm.org/D3#760149, @aaron.ballman wrote: > > > As an FYI, there is a related check currently under development in > > clang-tidy; we

[PATCH] D33363: [mips] Support `micromips` attribute

2017-05-21 Thread Simon Atanasyan via Phabricator via cfe-commits
atanasyan updated this revision to Diff 99703. atanasyan added a comment. Thanks for review. This changes: - Allow simultaneous using of micromips and interrupt attributes. - Fix wording of micromips attribute description. Repository: rL LLVM https://reviews.llvm.org/D33363 Files:

[PATCH] D33170: [X86] Adding avx512_vpopcntdq feature set and its intrinsics

2017-05-21 Thread Oren Ben Simhon via Phabricator via cfe-commits
oren_ben_simhon added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:7527 +Value *X = EmitScalarExpr(E->getArg(0)); +llvm::Function *F = CGM.getIntrinsic(Intrinsic::ctpop, ResultType); +return Builder.CreateCall(F, X); craig.topper wrote: > I

[PATCH] D33082: Fix Libc++ build with MinGW64

2017-05-21 Thread Martell Malone via Phabricator via cfe-commits
martell added a comment. I want to give some context here to dispel the confusion of what is and isn't win32 api specific. First lets take `vasprintf` and `asprintf ` which are not implemented in msvcrt. In mingw-w64 we would just have posix implementations of both. They are hidden behind the

[PATCH] D33094: [ASTMatchers] Add clang-query support for equals matcher

2017-05-21 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:3846 + CXXBoolLiteralExpr, + IntegerLiteral), +

[PATCH] D30170: Function definition may have uninstantiated body

2017-05-21 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff updated this revision to Diff 99698. sepavloff added a comment. Made the patch a bit more compact. NFC. https://reviews.llvm.org/D30170 Files: include/clang/AST/Decl.h lib/AST/Decl.cpp lib/Sema/SemaDecl.cpp test/SemaCXX/cxx0x-cursory-default-delete.cpp