[llvm] 5718b9f - [NFC] Reformat VerifyPreservedCFG for non-CPP-aware syntax highlighters
Christopher Tetreault via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 2 11:35:53 PDT 2021
Author: Christopher Tetreault
Date: 2021-11-02T11:35:38-07:00
New Revision: 5718b9f128ba12d2e7a6c1631f60c997f3c19251
URL: https://github.com/llvm/llvm-project/commit/5718b9f128ba12d2e7a6c1631f60c997f3c19251
DIFF: https://github.com/llvm/llvm-project/commit/5718b9f128ba12d2e7a6c1631f60c997f3c19251.diff
LOG: [NFC] Reformat VerifyPreservedCFG for non-CPP-aware syntax highlighters
* Move `);` outside the #ENDIF. Syntax highlighters that highlight missed
closing parens, but are not aware of the C Preprocessor saw the original
code as having missed parens.
Added:
Modified:
llvm/lib/Passes/StandardInstrumentations.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Passes/StandardInstrumentations.cpp b/llvm/lib/Passes/StandardInstrumentations.cpp
index 44f3011044858..0c344cdf31172 100644
--- a/llvm/lib/Passes/StandardInstrumentations.cpp
+++ b/llvm/lib/Passes/StandardInstrumentations.cpp
@@ -44,10 +44,11 @@ using namespace llvm;
cl::opt<bool> PreservedCFGCheckerInstrumentation::VerifyPreservedCFG(
"verify-cfg-preserved", cl::Hidden,
#ifdef NDEBUG
- cl::init(false));
+ cl::init(false)
#else
- cl::init(true));
+ cl::init(true)
#endif
+ );
// An option that prints out the IR after passes, similar to
// -print-after-all except that it only prints the IR after passes that
More information about the llvm-commits
mailing list