diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-11-15 01:34:59 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-11-15 01:34:59 +0000 |
commit | b03bd4d96bfa6fe58afd7e4c238fad354b701ecd (patch) | |
tree | 187df4c6d831f6521192e03afdc4a16fc259c50e /llvm/lib/IR/ConstantFold.cpp | |
parent | 08c0b1a1bd345aadf2755358e4463b2c1047c616 (diff) | |
download | llvm-b03bd4d96bfa6fe58afd7e4c238fad354b701ecd.zip llvm-b03bd4d96bfa6fe58afd7e4c238fad354b701ecd.tar.gz llvm-b03bd4d96bfa6fe58afd7e4c238fad354b701ecd.tar.bz2 |
Add addrspacecast instruction.
Patch by Michele Scandale!
llvm-svn: 194760
Diffstat (limited to 'llvm/lib/IR/ConstantFold.cpp')
-rw-r--r-- | llvm/lib/IR/ConstantFold.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/ConstantFold.cpp b/llvm/lib/IR/ConstantFold.cpp index 3319ec5..f5e225c 100644 --- a/llvm/lib/IR/ConstantFold.cpp +++ b/llvm/lib/IR/ConstantFold.cpp @@ -689,6 +689,8 @@ Constant *llvm::ConstantFoldCastInstruction(unsigned opc, Constant *V, } case Instruction::BitCast: return FoldBitCast(V, DestTy); + case Instruction::AddrSpaceCast: + return 0; } } |