From 61372ea958220ca041d473c10b67d55d9d9abe7f 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223192 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/Statepoint.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/llvm/IR/Statepoint.h b/include/llvm/IR/Statepoint.h index 035509c11e6..e8ed63359e0 100644 --- a/include/llvm/IR/Statepoint.h +++ b/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)); } -- 2.11.0