mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Thread LLVMContext through the constant folding APIs, which touches a lot of files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1158,7 +1158,8 @@ void SCCPSolver::visitLoadInst(LoadInst &I) {
|
||||
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(CE->getOperand(0)))
|
||||
if (GV->isConstant() && GV->hasDefinitiveInitializer())
|
||||
if (Constant *V =
|
||||
ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(), CE)) {
|
||||
ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(), CE,
|
||||
Context)) {
|
||||
markConstant(IV, &I, V);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user