[llvm-commits] CVS: llvm/lib/Bytecode/Archive/Archive.cpp

Reid Spencer reid at x10sys.com
Sat Apr 7 12:52:02 PDT 2007



Changes in directory llvm/lib/Bytecode/Archive:

Archive.cpp updated: 1.21 -> 1.22
---
Log message:

Avoid a useless temporary constrution.


---
Diffs of the changes:  (+1 -2)

 Archive.cpp |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


Index: llvm/lib/Bytecode/Archive/Archive.cpp
diff -u llvm/lib/Bytecode/Archive/Archive.cpp:1.21 llvm/lib/Bytecode/Archive/Archive.cpp:1.22
--- llvm/lib/Bytecode/Archive/Archive.cpp:1.21	Sat Apr  7 14:45:30 2007
+++ llvm/lib/Bytecode/Archive/Archive.cpp	Sat Apr  7 14:51:45 2007
@@ -116,8 +116,7 @@
     path.getMagicNumber(magic,4);
     signature = magic.c_str();
     std::string err;
-    const sys::FileStatus *FSinfo = 
-      sys::PathWithStatus(path).getFileStatus(false, ErrMsg);
+    const sys::FileStatus *FSinfo = path.getFileStatus(false, ErrMsg);
     if (FSinfo)
       info = *FSinfo;
     else






More information about the llvm-commits mailing list