summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-04 02:27:17 +0000
committerChris Lattner <sabre@nondot.org>2004-08-04 02:27:17 +0000
commit37b570a04939489c8b217fb56e6f275e4f8ed346 (patch)
treeae295fe451ff49fa751a7cfca5c3696c561b78a7
parent639a702db804c622299781b20c444f802246cdc0 (diff)
downloadbcm5719-llvm-37b570a04939489c8b217fb56e6f275e4f8ed346.tar.gz
bcm5719-llvm-37b570a04939489c8b217fb56e6f275e4f8ed346.zip
Add a cast
llvm-svn: 15457
-rw-r--r--llvm/lib/VMCore/Globals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Globals.cpp b/llvm/lib/VMCore/Globals.cpp
index ea877010114..2369d1c8eaa 100644
--- a/llvm/lib/VMCore/Globals.cpp
+++ b/llvm/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<Constant>(To));
}
// vim: sw=2 ai
OpenPOWER on IntegriCloud