From: NAKAMURA Takumi Date: Wed, 3 Dec 2014 02:40:24 +0000 (+0000) Subject: GCRelocateOperands: Try to appease msc17. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a64776cc0b2d8366cebc7ea00496ebb1e6b462b;p=platform%2Fupstream%2Fllvm.git GCRelocateOperands: Try to appease msc17. llvm-svn: 223192 --- diff --git a/llvm/include/llvm/IR/Statepoint.h b/llvm/include/llvm/IR/Statepoint.h index 035509c..e8ed633 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)); }