[cfe-dev] Readonly variable using in output list of inline asm
hakobyan.ars at gmail.com
Fri Jun 15 02:10:03 PDT 2012
I need to know why clang allows constant variable using in output list.
const int b = 0;
"mov $10, %0\n"
I found that clang checks whether variable is LValue. It does in
CheckAsmLValue() function (clang/lib/Sema/SemaStmt.cpp). but I there is not
checking for const variables.
So where it will be more effectively to change the implementation to deny
the using of read-only variables in operand list?
View this message in context: http://clang-developers.42468.n3.nabble.com/Readonly-variable-using-in-output-list-of-inline-asm-tp4024580.html
Sent from the Clang Developers mailing list archive at Nabble.com.
More information about the cfe-dev