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:
d720da2
)
Avoid generating a getelementptr instruction of a function
author
Chris Lattner
<sabre@nondot.org>
Wed, 4 Jun 2003 01:24:40 +0000
(
01:24
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 4 Jun 2003 01:24:40 +0000
(
01:24
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6591
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/SparcV9/SparcV9PreSelection.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/SparcV9/SparcV9PreSelection.cpp
b/lib/Target/SparcV9/SparcV9PreSelection.cpp
index bd85d3a4bc0d1a4450b2f2c8a871b62089a520f0..a4e6d7a43124d58300f165532efb45fdd4ae3f20 100644
(file)
--- a/
lib/Target/SparcV9/SparcV9PreSelection.cpp
+++ b/
lib/Target/SparcV9/SparcV9PreSelection.cpp
@@
-177,7
+177,7
@@
static GetElementPtrInst* getGlobalAddr(Value* ptr, Instruction& insertBefore)
if (isa<ConstantPointerRef>(ptr))
ptr = cast<ConstantPointerRef>(ptr)->getValue();
- return (isa<GlobalVa
lu
e>(ptr))
+ return (isa<GlobalVa
riabl
e>(ptr))
? new GetElementPtrInst(ptr,
std::vector<Value*>(1, ConstantSInt::get(Type::LongTy, 0U)),
"addrOfGlobal", &insertBefore)