diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-08-04 02:27:17 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-08-04 02:27:17 +0000 |
| commit | 37b570a04939489c8b217fb56e6f275e4f8ed346 (patch) | |
| tree | ae295fe451ff49fa751a7cfca5c3696c561b78a7 | |
| parent | 639a702db804c622299781b20c444f802246cdc0 (diff) | |
| download | bcm5719-llvm-37b570a04939489c8b217fb56e6f275e4f8ed346.tar.gz bcm5719-llvm-37b570a04939489c8b217fb56e6f275e4f8ed346.zip | |
Add a cast
llvm-svn: 15457
| -rw-r--r-- | llvm/lib/VMCore/Globals.cpp | 2 |
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 |

