[LLVMbugs] Compiler errors on msvc
Argiris Kirtzidis
akyrtzi at gmail.com
Sun Mar 9 11:21:51 PDT 2008
Hi,
The attached patch fixes a couple of compiler errors on msvc:
- std::map<const Value*,Value*>::const_iterator I =
ValueMap.find(SAliasee);
+ std::map<const Value*,Value*>::const_iterator VMI =
ValueMap.find(SAliasee);
error: redefinition of 'I'
+#include <algorithm>
so that std::find is usable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msvc-fix.zip
Type: application/octet-stream
Size: 623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20080309/7d191aa9/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: msvc-fix.patch
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20080309/7d191aa9/attachment.ksh>
More information about the llvm-bugs
mailing list