aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/LevelRaise.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/LevelRaise.cpp')
-rw-r--r--lib/Transforms/LevelRaise.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp
index 886c7bdcf3..f155c50709 100644
--- a/lib/Transforms/LevelRaise.cpp
+++ b/lib/Transforms/LevelRaise.cpp
@@ -637,9 +637,9 @@ static bool DoInsertArrayCasts(Method *M) {
// TODO: insert casts for alloca, malloc, and function call results. Also,
// look for pointers that already have casts, to add to the map.
- if (Changed) {
- cerr << "Inserted casts:\n" << M;
- }
+#ifdef DEBUG_PEEPHOLE_INSTS
+ if (Changed) cerr << "Inserted casts:\n" << M;
+#endif
return Changed;
}