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:
6b46e38
)
GCRelocateOperands: Try to appease msc17.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Wed, 3 Dec 2014 02:40:24 +0000
(
02:40
+0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Wed, 3 Dec 2014 02:40:24 +0000
(
02:40
+0000)
llvm-svn: 223192
llvm/include/llvm/IR/Statepoint.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/IR/Statepoint.h
b/llvm/include/llvm/IR/Statepoint.h
index
035509c
..
e8ed633
100644
(file)
--- a/
llvm/include/llvm/IR/Statepoint.h
+++ b/
llvm/include/llvm/IR/Statepoint.h
@@
-177,8
+177,9
@@
class GCRelocateOperands {
ImmutableCallSite RelocateCS;
public:
- GCRelocateOperands(const User* U)
- : GCRelocateOperands(cast<Instruction>(U)) {}
+ GCRelocateOperands(const User* U) : RelocateCS(U) {
+ assert(isGCRelocate(U));
+ }
GCRelocateOperands(const Instruction *inst) : RelocateCS(inst) {
assert(isGCRelocate(inst));
}