[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopUnroll.cpp LowerGC.cpp
Reid Spencer
reid at x10sys.com
Mon Oct 18 07:39:35 PDT 2004
Changes in directory llvm/lib/Transforms/Scalar:
LoopUnroll.cpp updated: 1.12 -> 1.13
LowerGC.cpp updated: 1.5 -> 1.6
---
Log message:
Correction to allow compilation with Visual C++.
Patch contributed by Morten Ofstad. Thanks Morten!
---
Diffs of the changes: (+4 -2)
Index: llvm/lib/Transforms/Scalar/LoopUnroll.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.12 llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.13
--- llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.12 Wed Sep 15 12:06:41 2004
+++ llvm/lib/Transforms/Scalar/LoopUnroll.cpp Mon Oct 18 09:38:48 2004
@@ -30,6 +30,8 @@
#include "llvm/ADT/STLExtras.h"
#include <cstdio>
#include <set>
+#include <algorithm>
+
using namespace llvm;
namespace {
Index: llvm/lib/Transforms/Scalar/LowerGC.cpp
diff -u llvm/lib/Transforms/Scalar/LowerGC.cpp:1.5 llvm/lib/Transforms/Scalar/LowerGC.cpp:1.6
--- llvm/lib/Transforms/Scalar/LowerGC.cpp:1.5 Thu Jul 22 00:51:13 2004
+++ llvm/lib/Transforms/Scalar/LowerGC.cpp Mon Oct 18 09:38:48 2004
@@ -143,8 +143,8 @@
if (Constant *C = dyn_cast<Constant>(I->getOperand(OpNum)))
I->setOperand(OpNum, ConstantExpr::getCast(C, Ty));
else {
- CastInst *C = new CastInst(I->getOperand(OpNum), Ty, "", I);
- I->setOperand(OpNum, C);
+ CastInst *CI = new CastInst(I->getOperand(OpNum), Ty, "", I);
+ I->setOperand(OpNum, CI);
}
}
}
More information about the llvm-commits
mailing list