[llvm-commits] CVS: llvm/lib/Support/FileUtilities.cpp

Reid Spencer reid at x10sys.com
Mon May 15 15:12:54 PDT 2006



Changes in directory llvm/lib/Support:

FileUtilities.cpp updated: 1.46 -> 1.47
---
Log message:

For PR777: http://llvm.cs.uiuc.edu/PR777 :
Add an additional catch block to ensure that this function can't throw any
exceptions, even one's we're not expecting.


---
Diffs of the changes:  (+3 -0)

 FileUtilities.cpp |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/lib/Support/FileUtilities.cpp
diff -u llvm/lib/Support/FileUtilities.cpp:1.46 llvm/lib/Support/FileUtilities.cpp:1.47
--- llvm/lib/Support/FileUtilities.cpp:1.46	Mon Aug  1 19:11:53 2005
+++ llvm/lib/Support/FileUtilities.cpp	Mon May 15 17:12:42 2006
@@ -241,5 +241,8 @@
   } catch (const std::string &Msg) {
     if (Error) *Error = Msg;
     return 2;
+  } catch (...) {
+    *Error = "Unknown Exception Occurred";
+    return 2;
   }
 }






More information about the llvm-commits mailing list