r188132 - Fix warning in builds without asserts.

Rafael Espindola rafael.espindola at gmail.com
Fri Aug 9 21:25:53 PDT 2013


Author: rafael
Date: Fri Aug  9 23:25:53 2013
New Revision: 188132

URL: http://llvm.org/viewvc/llvm-project?rev=188132&view=rev
Log:
Fix warning in builds without asserts.

Modified:
    cfe/trunk/lib/Tooling/Tooling.cpp

Modified: cfe/trunk/lib/Tooling/Tooling.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp?rev=188132&r1=188131&r2=188132&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/Tooling.cpp (original)
+++ cfe/trunk/lib/Tooling/Tooling.cpp Fri Aug  9 23:25:53 2013
@@ -133,6 +133,7 @@ std::string getAbsolutePath(StringRef Fi
   SmallString<1024> AbsolutePath = RelativePath;
   llvm::error_code EC = llvm::sys::fs::make_absolute(AbsolutePath);
   assert(!EC);
+  (void)EC;
   SmallString<1024> PathStorage;
   llvm::sys::path::native(Twine(AbsolutePath), PathStorage);
   return PathStorage.str();





More information about the cfe-commits mailing list