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:
9f9e2be
)
Fix code to make GCC 2.96 happy
author
Chris Lattner
<sabre@nondot.org>
Sat, 13 Oct 2001 06:34:47 +0000
(06:34 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 13 Oct 2001 06:34:47 +0000
(06:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@753
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/Expressions.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/Expressions.cpp
b/lib/Analysis/Expressions.cpp
index e6f4cfa94783c8bd60fc196618d61ad44cdba988..ed04f1d818a93f02635ddc82872a4eb38486cd2a 100644
(file)
--- a/
lib/Analysis/Expressions.cpp
+++ b/
lib/Analysis/Expressions.cpp
@@
-73,7
+73,8
@@
struct DefOne : public DefVal {
static ConstPoolInt *getUnsignedConstant(uint64_t V, const Type *Ty) {
if (Ty->isPointerType()) Ty = Type::ULongTy;
- return Ty->isSigned() ? ConstPoolSInt::get(Ty, V) : ConstPoolUInt::get(Ty, V);
+ return Ty->isSigned() ? (ConstPoolInt*)ConstPoolSInt::get(Ty, V)
+ : (ConstPoolInt*)ConstPoolUInt::get(Ty, V);
}
// Add - Helper function to make later code simpler. Basically it just adds