From 2c299f4611ebf49ff8be3dc001d1aca0bdfd1427 Mon Sep 17 00:00:00 2001 From: Chick Markley Date: Fri, 17 Aug 2018 12:24:21 -0700 Subject: Binding support (#854) - Fixed edge case file name that starts with . and has no suffix--- src/main/scala/firrtl/annotations/LoadMemoryAnnotation.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/scala') diff --git a/src/main/scala/firrtl/annotations/LoadMemoryAnnotation.scala b/src/main/scala/firrtl/annotations/LoadMemoryAnnotation.scala index a5ba22dd..52022f87 100644 --- a/src/main/scala/firrtl/annotations/LoadMemoryAnnotation.scala +++ b/src/main/scala/firrtl/annotations/LoadMemoryAnnotation.scala @@ -31,6 +31,8 @@ case class LoadMemoryAnnotation( throw new Exception(s"empty filename not allowed in LoadMemoryAnnotation") case name :: Nil => (name, "") + case "" :: name :: Nil => // this case handles a filename that begins with dot and has no suffix + ("." + name, "") case other => (other.reverse.tail.reverse.mkString("."), "." + other.last) } -- cgit v1.2.3