Skip to content

Store the calculated constant expression value into the ConstantExpr … #3204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

erichkeane
Copy link
Contributor

…object

With https://reviews.llvm.org/D63376, we began storing the APValue
directly into the ConstantExpr object so that we could reuse the
calculated value later. However, it missed a case when not in C++11
mode but the expression is known to be constant.

…object

With https://reviews.llvm.org/D63376, we began storing the APValue
directly into the ConstantExpr object so that we could reuse the
calculated value later. However, it missed a case when not in C++11
mode but the expression is known to be constant.
@AaronBallman
Copy link
Contributor

LGTM -- we're going to ignore the clang-format issues because they're within whitespace-sensitive test files.

@elizabethandrews
Copy link
Contributor

@bader this is a cherry-pick from intel/llvm. We need it for a couple of pending patches, which is why we cherry-picked.

@bader
Copy link
Contributor

bader commented Feb 11, 2021

this is a cherry-pick from intel/llvm

You mean from llvm/llvm-project?

@bader
Copy link
Contributor

bader commented Feb 11, 2021

LGTM -- we're going to ignore the clang-format issues because they're within whitespace-sensitive test files.

I hope #3205 fixes clang-format check.

@erichkeane
Copy link
Contributor Author

this is a cherry-pick from intel/llvm

You mean from llvm/llvm-project?

Yes, that is the case.

@elizabethandrews
Copy link
Contributor

this is a cherry-pick from intel/llvm

You mean from llvm/llvm-project?

Yes. Sorry. It is from llvm/llvm-project

@bader bader merged commit eaf4dac into intel:sycl Feb 11, 2021
zahiraam pushed a commit to zahiraam/llvm-1 that referenced this pull request Feb 16, 2021
…object (intel#3204)

With https://reviews.llvm.org/D63376, we began storing the APValue
directly into the ConstantExpr object so that we could reuse the
calculated value later. However, it missed a case when not in C++11
mode but the expression is known to be constant.

Co-authored-by: Aaron Ballman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants