From 07d7c9d9c508ec67a86ed572819d8cf9e3bdc422 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 4 Aug 2004 02:27:17 +0000 Subject: [PATCH] Add a cast git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15457 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Globals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Globals.cpp b/lib/VMCore/Globals.cpp index ea877010114..2369d1c8eaa 100644 --- a/lib/VMCore/Globals.cpp +++ b/lib/VMCore/Globals.cpp @@ -120,7 +120,7 @@ void GlobalVariable::replaceUsesOfWithOnConstant(Value *From, Value *To, "Attempt to replace GVar initializer with non-constant"); // Okay, preconditions out of the way, replace the constant initializer. - this->setOperand(0,To); + this->setOperand(0, cast(To)); } // vim: sw=2 ai