aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestCSharp.cpp
diff options
context:
space:
mode:
authorKirill Naumov <knaumov@azul.com>2020-04-30 15:09:51 +0000
committerKirill Naumov <knaumov@azul.com>2020-04-30 15:38:36 +0000
commit0383253cdfe705c83fff60a15fc6b3b71c41ee89 (patch)
treef843e5d13f37bf329a55d1ccaeb0df1090d0e78d /clang/unittests/Format/FormatTestCSharp.cpp
parent51308ee30ce78d643d93ed08be0bb11fb7c98289 (diff)
downloadllvm-0383253cdfe705c83fff60a15fc6b3b71c41ee89.zip
llvm-0383253cdfe705c83fff60a15fc6b3b71c41ee89.tar.gz
llvm-0383253cdfe705c83fff60a15fc6b3b71c41ee89.tar.bz2
[InlineCost] Addressing a very strict assert check in CostAnnotationWriter::emitInstructionAnnot
The assert checks that every instruction must be annotated by this point while it is not necessary. If the inlining process was interrupted because the threshold was reached, the rest of the instructions would not be annotated which triggers the assert. The added test shows the situation in which it can happen. This is a recommit as the original commit fail due to the absence of REQUIRES: assert in the test. Reviewed By: mtrofin Differential Revision: https://reviews.llvm.org/D79107
Diffstat (limited to 'clang/unittests/Format/FormatTestCSharp.cpp')
0 files changed, 0 insertions, 0 deletions