summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp')
-rw-r--r--llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp b/llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp
index 00cfd1295e6..fc629a6a3fd 100644
--- a/llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp
+++ b/llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp
@@ -85,8 +85,6 @@ namespace {
// getGlobalAddr(): Put address of a global into a v. register.
static GetElementPtrInst* getGlobalAddr(Value* ptr, Instruction& insertBefore) {
- if (isa<ConstantPointerRef>(ptr))
- ptr = cast<ConstantPointerRef>(ptr)->getValue();
return (isa<GlobalVariable>(ptr))
? new GetElementPtrInst(ptr,
OpenPOWER on IntegriCloud