projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbc96b5
)
[IRBuilder] Add missing NoFolder::CreatePointerBitCastOrAddrSpaceCast(); NFC
author
Nikita Popov
<nikita.ppv@gmail.com>
Mon, 3 Feb 2020 18:10:20 +0000
(19:10 +0100)
committer
Nikita Popov
<nikita.ppv@gmail.com>
Mon, 3 Feb 2020 18:11:27 +0000
(19:11 +0100)
Split out from D73835. This method was added to ConstantFolder and
TargetFolder, but not NoFolder.
llvm/include/llvm/IR/NoFolder.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/IR/NoFolder.h
b/llvm/include/llvm/IR/NoFolder.h
index
85fd2ab
..
9073878
100644
(file)
--- a/
llvm/include/llvm/IR/NoFolder.h
+++ b/
llvm/include/llvm/IR/NoFolder.h
@@
-235,6
+235,11
@@
public:
return CastInst::CreatePointerCast(C, DestTy);
}
+ Instruction *CreatePointerBitCastOrAddrSpaceCast(
+ Constant *C, Type *DestTy) const {
+ return CastInst::CreatePointerBitCastOrAddrSpaceCast(C, DestTy);
+ }
+
Instruction *CreateIntCast(Constant *C, Type *DestTy,
bool isSigned) const {
return CastInst::CreateIntegerCast(C, DestTy, isSigned);