Skip to content

Commit

Permalink
Merged main:f5cef870d116 into amd-gfx:7797ed95dd67
Browse files Browse the repository at this point in the history
Local branch amd-gfx 7797ed9 Merged main:9c978dd6e12e into amd-gfx:f93171f456c8
Remote branch main f5cef87 [www] Remove '$' marker from cxx_dr_status.
  • Loading branch information
Sw authored and Sw committed Dec 18, 2020
2 parents 7797ed9 + f5cef87 commit e737d1e
Show file tree
Hide file tree
Showing 18 changed files with 341 additions and 90 deletions.
4 changes: 2 additions & 2 deletions clang/include/clang/AST/ASTContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -2818,8 +2818,8 @@ class ASTContext : public RefCountedBase<ASTContext> {
/// for destruction.
template <typename T> void addDestruction(T *Ptr) const {
if (!std::is_trivially_destructible<T>::value) {
auto DestroyPtr = [](void *V) { static_cast<T *>(V)->~T(); };
AddDeallocation(DestroyPtr, Ptr);
auto DestroyPtr = [](void *V) { ((T*)V)->~T(); };
AddDeallocation(DestroyPtr, (void*)Ptr);
}
}

Expand Down
1 change: 1 addition & 0 deletions clang/lib/AST/TemplateBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ TemplateArgument::TemplateArgument(const ASTContext &Ctx, QualType Type,
else {
Value.Kind = UncommonValue;
Value.Value = new (Ctx) APValue(V);
Ctx.addDestruction(Value.Value);
Value.Type = Type.getAsOpaquePtr();
}
}
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Frontend/InitPreprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
Builder.defineMacro("__cpp_aggregate_bases", "201603L");
Builder.defineMacro("__cpp_structured_bindings", "201606L");
Builder.defineMacro("__cpp_nontype_template_args",
"201411L"); // (not latest)
LangOpts.CPlusPlus20 ? "201911L" : "201411L");
Builder.defineMacro("__cpp_fold_expressions", "201603L");
Builder.defineMacro("__cpp_guaranteed_copy_elision", "201606L");
Builder.defineMacro("__cpp_nontype_template_parameter_auto", "201606L");
Expand Down
Loading

0 comments on commit e737d1e

Please sign in to comment.