For PR797:
[oota-llvm.git] / projects / Stacker / lib / compiler / StackerCompiler.h
index 383e569c2518d9c0f3c6894d21d8adadf20b8624..ef09cdb469a293f41bc958303c31896424fb0110 100644 (file)
@@ -158,7 +158,9 @@ class StackerCompiler
         {
           if (line == -1) line = Stackerlineno;
           // TODO: column number in exception
-          throw ParseException(TheInstance->CurFilename, message, line);
+          ParseError Err;
+          Err.setError(TheInstance->CurFilename, message, line);
+          throw Err;
         }
     private:
         /// @brief Generate code to increment the stack index