projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7c1657
)
Eliminate major source of VC++ "possible loss of data" warnings.
author
Jeff Cohen
<jeffc@jolt-lang.org>
Mon, 11 Apr 2005 03:38:28 +0000
(
03:38
+0000)
committer
Jeff Cohen
<jeffc@jolt-lang.org>
Mon, 11 Apr 2005 03:38:28 +0000
(
03:38
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21215
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineInstr.h
b/include/llvm/CodeGen/MachineInstr.h
index cf35abe4a037d33ac1948efbbb782320bc91e80e..6a6d380fef2f6aaf5c20fe73857440b561e96d05 100644
(file)
--- a/
include/llvm/CodeGen/MachineInstr.h
+++ b/
include/llvm/CodeGen/MachineInstr.h
@@
-275,11
+275,11
@@
public:
}
int getFrameIndex() const {
assert(isFrameIndex() && "Wrong MachineOperand accessor");
- return contents.immedVal;
+ return
(int)
contents.immedVal;
}
unsigned getConstantPoolIndex() const {
assert(isConstantPoolIndex() && "Wrong MachineOperand accessor");
- return contents.immedVal;
+ return
(unsigned)
contents.immedVal;
}
GlobalValue *getGlobal() const {
assert(isGlobalAddress() && "Wrong MachineOperand accessor");