diff options
| author | Bill Wendling <isanbard@gmail.com> | 2018-11-24 10:45:55 +0000 | 
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2018-11-24 10:45:55 +0000 | 
| commit | 1af8dd6a1edb1d3a2e302b1e92d53d877a7892e1 (patch) | |
| tree | 83ebeccd064907913a4f21e89e7a83db6e6af0ad /llvm/tools/llvm-mca/lib/InstrBuilder.cpp | |
| parent | 7459398a436f67f304c8653f39b8d82109778fec (diff) | |
| download | bcm5719-llvm-1af8dd6a1edb1d3a2e302b1e92d53d877a7892e1.tar.gz bcm5719-llvm-1af8dd6a1edb1d3a2e302b1e92d53d877a7892e1.zip | |
isEvaluatable() implies a constant context.
Assume that we're in a constant context if we're asking if the expression can
be compiled into a constant initializer. This fixes the issue where a
__builtin_constant_p() in a compound literal was diagnosed as not being
constant, even though it's always possible to convert the builtin into a
constant.
llvm-svn: 347512
Diffstat (limited to 'llvm/tools/llvm-mca/lib/InstrBuilder.cpp')
0 files changed, 0 insertions, 0 deletions

