From 0a64776cc0b2d8366cebc7ea00496ebb1e6b462b Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 3 Dec 2014 02:40:24 +0000 Subject: [PATCH] GCRelocateOperands: Try to appease msc17. llvm-svn: 223192 --- llvm/include/llvm/IR/Statepoint.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/IR/Statepoint.h b/llvm/include/llvm/IR/Statepoint.h index 035509c11e63..e8ed63359e0f 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(U)) {} + GCRelocateOperands(const User* U) : RelocateCS(U) { + assert(isGCRelocate(U)); + } GCRelocateOperands(const Instruction *inst) : RelocateCS(inst) { assert(isGCRelocate(inst)); }