r256644 - Silencing a -Wcast-qual warning; NFC.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 30 08:02:18 PST 2015
Author: aaronballman
Date: Wed Dec 30 10:02:17 2015
New Revision: 256644
URL: http://llvm.org/viewvc/llvm-project?rev=256644&view=rev
Log:
Silencing a -Wcast-qual warning; NFC.
Modified:
cfe/trunk/lib/AST/MicrosoftMangle.cpp
Modified: cfe/trunk/lib/AST/MicrosoftMangle.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/MicrosoftMangle.cpp?rev=256644&r1=256643&r2=256644&view=diff
==============================================================================
--- cfe/trunk/lib/AST/MicrosoftMangle.cpp (original)
+++ cfe/trunk/lib/AST/MicrosoftMangle.cpp Wed Dec 30 10:02:17 2015
@@ -1489,7 +1489,7 @@ void MicrosoftCXXNameMangler::manglePass
int Type = POSA->getType();
auto Iter = PassObjectSizeArgs.insert(Type).first;
- void *TypePtr = (void *)&*Iter;
+ void *TypePtr = const_cast<void *>((const void *)&*Iter);
ArgBackRefMap::iterator Found = TypeBackReferences.find(TypePtr);
if (Found == TypeBackReferences.end()) {
More information about the cfe-commits
mailing list