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:
6d2bd95
)
Support AddrSpaceCast in ConstantExpr::getAsInstruction.
author
Eli Bendersky
<eliben@google.com>
Sat, 18 Jan 2014 22:54:33 +0000
(22:54 +0000)
committer
Eli Bendersky
<eliben@google.com>
Sat, 18 Jan 2014 22:54:33 +0000
(22:54 +0000)
It's handled similarly to the other casts. CastInst::Create already knows how
to handle it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199565
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Constants.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Constants.cpp
b/lib/IR/Constants.cpp
index dbb3495583bc777c409ce8cad043e9f0fad71af1..1f6f5ac4270c22f581826f20e0f893a6b228a2ae 100644
(file)
--- a/
lib/IR/Constants.cpp
+++ b/
lib/IR/Constants.cpp
@@
-2783,6
+2783,7
@@
Instruction *ConstantExpr::getAsInstruction() {
case Instruction::PtrToInt:
case Instruction::IntToPtr:
case Instruction::BitCast:
+ case Instruction::AddrSpaceCast:
return CastInst::Create((Instruction::CastOps)getOpcode(),
Ops[0], getType());
case Instruction::Select: