[llvm-commits] CVS: llvm/include/llvm/BasicBlock.h Function.h Module.h
Jeff Cohen
jeffc at jolt-lang.org
Mon Apr 16 22:33:25 PDT 2007
Changes in directory llvm/include/llvm:
BasicBlock.h updated: 1.66 -> 1.67
Function.h updated: 1.78 -> 1.79
Module.h updated: 1.87 -> 1.88
---
Log message:
Fix build breakage on 64-bit systems.
---
Diffs of the changes: (+5 -5)
BasicBlock.h | 2 +-
Function.h | 4 ++--
Module.h | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
Index: llvm/include/llvm/BasicBlock.h
diff -u llvm/include/llvm/BasicBlock.h:1.66 llvm/include/llvm/BasicBlock.h:1.67
--- llvm/include/llvm/BasicBlock.h:1.66 Mon Apr 16 23:04:14 2007
+++ llvm/include/llvm/BasicBlock.h Tue Apr 17 00:33:04 2007
@@ -199,7 +199,7 @@
static unsigned getInstListOffset() {
BasicBlock *Obj = 0;
- return reinterpret_cast<unsigned>(&Obj->InstList);
+ return unsigned(reinterpret_cast<uintptr_t>(&Obj->InstList));
}
};
Index: llvm/include/llvm/Function.h
diff -u llvm/include/llvm/Function.h:1.78 llvm/include/llvm/Function.h:1.79
--- llvm/include/llvm/Function.h:1.78 Mon Apr 16 23:31:29 2007
+++ llvm/include/llvm/Function.h Tue Apr 17 00:33:04 2007
@@ -246,11 +246,11 @@
static unsigned getBasicBlockListOffset() {
Function *Obj = 0;
- return reinterpret_cast<unsigned>(&Obj->BasicBlocks);
+ return unsigned(reinterpret_cast<uintptr_t>(&Obj->BasicBlocks));
}
static unsigned getArgumentListOffset() {
Function *Obj = 0;
- return reinterpret_cast<unsigned>(&Obj->ArgumentList);
+ return unsigned(reinterpret_cast<uintptr_t>(&Obj->ArgumentList));
}
};
Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.87 llvm/include/llvm/Module.h:1.88
--- llvm/include/llvm/Module.h:1.87 Mon Apr 16 23:04:14 2007
+++ llvm/include/llvm/Module.h Tue Apr 17 00:33:04 2007
@@ -318,11 +318,11 @@
static unsigned getFunctionListOffset() {
Module *Obj = 0;
- return reinterpret_cast<unsigned>(&Obj->FunctionList);
+ return unsigned(reinterpret_cast<uintptr_t>(&Obj->FunctionList));
}
static unsigned getGlobalVariableListOffset() {
Module *Obj = 0;
- return reinterpret_cast<unsigned>(&Obj->GlobalList);
+ return unsigned(reinterpret_cast<uintptr_t>(&Obj->GlobalList));
}
};
More information about the llvm-commits
mailing list