diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-12-03 02:40:24 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-12-03 02:40:24 +0000 |
| commit | 0a64776cc0b2d8366cebc7ea00496ebb1e6b462b (patch) | |
| tree | 98ddf75383d18f41a0529d5c301d61be95b6cad2 | |
| parent | 6b46e381e60973d85b2ed0f7f47e5ac5fff2da3c (diff) | |
| download | bcm5719-llvm-0a64776cc0b2d8366cebc7ea00496ebb1e6b462b.tar.gz bcm5719-llvm-0a64776cc0b2d8366cebc7ea00496ebb1e6b462b.zip | |
GCRelocateOperands: Try to appease msc17.
llvm-svn: 223192
| -rw-r--r-- | llvm/include/llvm/IR/Statepoint.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/Statepoint.h b/llvm/include/llvm/IR/Statepoint.h index 035509c11e6..e8ed63359e0 100644 --- 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)); } |

