Skip to content

Commit ffa0713

Browse files
committed
Silence inexhaustive warning
1 parent 8b88960 commit ffa0713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/scala/tools/nsc/backend/llvm/GenLLVM.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,8 @@ abstract class GenLLVM extends SubComponent {
893893
}
894894

895895
def exportFunction(m: IMethod): Seq[ModuleComp] = {
896-
m.symbol.getAnnotation(ForeignExportAnnotSym) match {
897-
case Some(AnnotationInfo(_,List(Literal(Constant(foreignSymbol: String))),_)) => {
896+
m.symbol.getAnnotation(ForeignExportAnnotSym).get match {
897+
case AnnotationInfo(_,List(Literal(Constant(foreignSymbol: String))),_) => {
898898
val methType = m.symbol.info
899899
if (!m.symbol.isStatic) {
900900
error("Only object methods can be exported"); Seq.empty

0 commit comments

Comments
 (0)