compiler: really define runtime/volatile.* functions

This makes them available to deferred calls, among others.
This commit is contained in:
Ayke van Laethem
2022-06-20 14:56:55 +02:00
committed by Ron Evans
parent e1052f921c
commit 1ceb63d14c
5 changed files with 22 additions and 19 deletions
-4
View File
@@ -1642,10 +1642,6 @@ func (b *builder) createFunctionCall(instr *ssa.CallCommon) (llvm.Value, error)
return b.createSyscall(instr)
case strings.HasPrefix(name, "syscall.rawSyscallNoError"):
return b.createRawSyscallNoError(instr)
case strings.HasPrefix(name, "runtime/volatile.Load"):
return b.createVolatileLoad(instr)
case strings.HasPrefix(name, "runtime/volatile.Store"):
return b.createVolatileStore(instr)
case name == "runtime.supportsRecover":
supportsRecover := uint64(0)
if b.supportsRecover() {