summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-03-01 00:11:17 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-03-01 07:56:21 +0100
commitc46bc25d94138befcd36ce1fdaf6c677bc33fae8 (patch)
tree49abd6f66a99f5844cdc4c5f80ef037f5869532b
parent88b2915790a6a2ccfa490de6e36aa355148a42b2 (diff)
downloadscala-c46bc25d94138befcd36ce1fdaf6c677bc33fae8.tar.gz
scala-c46bc25d94138befcd36ce1fdaf6c677bc33fae8.tar.bz2
scala-c46bc25d94138befcd36ce1fdaf6c677bc33fae8.zip
Tone down a soft-warning to only show under -Ydebug.
SI-6191 remains open and can lead to incomplete debug scope information. In 2.10.0, the backend detected when this happend, and warned the user. But there is little the user can do about the warning. We have a few test cases for the problem now, so we should not pollute the compile output.
-rw-r--r--src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala
index 0abbe44b02..9b16327ffc 100644
--- a/src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala
+++ b/src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala
@@ -2143,8 +2143,8 @@ abstract class GenASM extends SubComponent with BytecodeWriters with GenJVMASM {
val start = st.pop()
seen ::= LocVarEntry(lv, start, end)
case _ =>
- // TODO SI-6049
- getCurrentCUnit().warning(iPos, "Visited SCOPE_EXIT before visiting corresponding SCOPE_ENTER. SI-6049")
+ // TODO SI-6049 track down the cause for these.
+ debugwarn(s"$iPos: Visited SCOPE_EXIT before visiting corresponding SCOPE_ENTER. SI-6191")
}
}