https://github.com/HerrCai0907 closed
https://github.com/llvm/llvm-project/pull/77416
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/HerrCai0907 updated
https://github.com/llvm/llvm-project/pull/77416
>From 0637a482c881f5ce31fd1debbc8dcc40a05c66ba Mon Sep 17 00:00:00 2001
From: Congcong Cai
Date: Tue, 9 Jan 2024 14:53:25 +0800
Subject: [PATCH 1/3] [clang]use correct this scope to evaluate noexcept expr
@@ -6192,6 +6192,12 @@ bool TreeTransform::TransformExceptionSpec(
// Instantiate a dynamic noexcept expression, if any.
if (isComputedNoexcept(ESI.Type)) {
+// Update this scrope because ContextDecl in Sema will be used in
TransformExpr.
+auto *Method =
https://github.com/cor3ntin approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/77416
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff 0930f62cf600d9e2e9a45fef1b3a422d50be89d5
0637a482c881f5ce31fd1debbc8dcc40a05c66ba --
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Congcong Cai (HerrCai0907)
Changes
Fixes: #77411
When substituting deduced type, noexcept expr in method should be instantiated
and evaluated.
ThisScrope should be switched to method context instead of origin sema context
---
Full diff:
https://github.com/HerrCai0907 created
https://github.com/llvm/llvm-project/pull/77416
Fixes: #77411
When substituting deduced type, noexcept expr in method should be instantiated
and evaluated.
ThisScrope should be switched to method context instead of origin sema context
>From