[cfe-commits] r172563 - /cfe/trunk/tools/libclang/CXLoadedDiagnostic.cpp
David Greene
greened at obbligato.org
Tue Jan 15 14:09:48 PST 2013
Author: greened
Date: Tue Jan 15 16:09:48 2013
New Revision: 172563
URL: http://llvm.org/viewvc/llvm-project?rev=172563&view=rev
Log:
Fix Casting
Use const_cast<> to avoid a cast-away-const error.
Modified:
cfe/trunk/tools/libclang/CXLoadedDiagnostic.cpp
Modified: cfe/trunk/tools/libclang/CXLoadedDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXLoadedDiagnostic.cpp?rev=172563&r1=172562&r2=172563&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CXLoadedDiagnostic.cpp (original)
+++ cfe/trunk/tools/libclang/CXLoadedDiagnostic.cpp Tue Jan 15 16:09:48 2013
@@ -512,7 +512,7 @@
reportInvalidFile("Corrupted file entry in source location");
return Failure;
}
- Loc.file = (void*) FE;
+ Loc.file = const_cast<FileEntry *>(FE);
Loc.line = Record[offset++];
Loc.column = Record[offset++];
Loc.offset = Record[offset++];
More information about the cfe-commits
mailing list