[LLVMbugs] Compiler errors on msvc

Argiris Kirtzidis akyrtzi at gmail.com
Sun Mar 9 11:21:51 PDT 2008


The attached patch fixes a couple of compiler errors on msvc:

-    std::map<const Value*,Value*>::const_iterator I = 
+    std::map<const Value*,Value*>::const_iterator VMI = 

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