Just rethrow previous exception instead of making a new one
authorChris Lattner <sabre@nondot.org>
Fri, 26 Sep 2003 14:44:52 +0000 (14:44 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 26 Sep 2003 14:44:52 +0000 (14:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8718 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp

index 067b70b80625ef4341c44f1e336dc9887445cfef..c69e680be24172db5bf1fb3edba7a13297849cc6 100644 (file)
@@ -654,6 +654,6 @@ BytecodeParser::ParseBytecode(const unsigned char *Buf, unsigned Length,
     freeState();       // Must destroy handles before deleting module!
     delete TheModule;
     TheModule = 0;
-    throw Error;
+    throw;
   }
 }