mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
remove warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34424 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e02e5e465b
commit
da304d0750
@ -237,11 +237,11 @@ bool Instruction::mayWriteToMemory() const {
|
|||||||
case Instruction::VAArg:
|
case Instruction::VAArg:
|
||||||
return true;
|
return true;
|
||||||
case Instruction::Call:
|
case Instruction::Call:
|
||||||
if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(this)) {
|
//if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(this)) {
|
||||||
// If the intrinsic doesn't write memory, it is safe.
|
// If the intrinsic doesn't write memory, it is safe.
|
||||||
// FIXME: this is obviously supposed to determine which intrinsics
|
// FIXME: this is obviously supposed to determine which intrinsics
|
||||||
// don't write to memory, but hasn't been implemented yet.
|
// don't write to memory, but hasn't been implemented yet.
|
||||||
}
|
//}
|
||||||
return true;
|
return true;
|
||||||
case Instruction::Load:
|
case Instruction::Load:
|
||||||
return cast<LoadInst>(this)->isVolatile();
|
return cast<LoadInst>(this)->isVolatile();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user