Fixed memory accesses with rbp as a base or an index register.
Details
Diff Detail
Event Timeline
lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp | ||
---|---|---|
30 | why do you need cassert? This file has used assertions before. | |
145 | Can LocalFrameReg be part of RegisterContext? | |
352 | Maybe RegisterContext::addBusyReg() accepting a register or an X86Operand, and then choose the frame register in InstrumentMemOperandPrologue? | |
test/Instrumentation/AddressSanitizer/X86/asm_cfi.s | ||
27 | Hm, why is this test so complex? There are 4 memory accesses here => we emit prologue/epilogue 4 times, and it's not obvious which one is tested. Can you make it simpler? It looks like this test covers the new code, but I'm not 100% sure. |
why do you need cassert? This file has used assertions before.