aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSander de Smalen <sander.desmalen@arm.com>2021-01-21 16:37:09 +0000
committerSander de Smalen <sander.desmalen@arm.com>2021-01-25 11:26:56 +0000
commitd196f9e2fca3ff767aa7d2dcaf4654724a79e18c (patch)
tree68dbbd697ee2bc2ba70118e3996e86f3b440ae50 /flang/lib/Frontend/CompilerInvocation.cpp
parent8fdd5784f0d30b165602343a96a34611779b007b (diff)
downloadllvm-d196f9e2fca3ff767aa7d2dcaf4654724a79e18c.zip
llvm-d196f9e2fca3ff767aa7d2dcaf4654724a79e18c.tar.gz
llvm-d196f9e2fca3ff767aa7d2dcaf4654724a79e18c.tar.bz2
[InstructionCost] Prevent InstructionCost being created with CostState.
For a function that returns InstructionCost, it is very tempting to write: return InstructionCost::Invalid; But that actually returns InstructionCost(1 /* int value of Invalid */)) which has a totally different meaning. By marking this constructor as `delete`, this can no longer happen.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions