mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Add a cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15457 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17c2b922d7
commit
07d7c9d9c5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user