summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/lib/InstrBuilder.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2018-11-24 10:45:55 +0000
committerBill Wendling <isanbard@gmail.com>2018-11-24 10:45:55 +0000
commit1af8dd6a1edb1d3a2e302b1e92d53d877a7892e1 (patch)
tree83ebeccd064907913a4f21e89e7a83db6e6af0ad /llvm/tools/llvm-mca/lib/InstrBuilder.cpp
parent7459398a436f67f304c8653f39b8d82109778fec (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud