forked from OSchip/llvm-project
parent
0a02f82767
commit
86358635e5
|
@ -237,11 +237,11 @@ bool Instruction::mayWriteToMemory() const {
|
|||
case Instruction::VAArg:
|
||||
return true;
|
||||
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.
|
||||
// FIXME: this is obviously supposed to determine which intrinsics
|
||||
// don't write to memory, but hasn't been implemented yet.
|
||||
}
|
||||
//}
|
||||
return true;
|
||||
case Instruction::Load:
|
||||
return cast<LoadInst>(this)->isVolatile();
|
||||
|
|
Loading…
Reference in New Issue