[CodeGen] Don't evaluate immediate inlineasm arguments using isICE().
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Sat, 13 Jun 2015 01:16:10 +0000 (01:16 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Sat, 13 Jun 2015 01:16:10 +0000 (01:16 +0000)
commitf6a9f0e112f396471709c7f5897375dceba9f251
tree23f946c336d3bc3b8a7689ee0c3a9088bc407e91
parentbfb5368cc7504728b73374e5c204dd957a652325
[CodeGen] Don't evaluate immediate inlineasm arguments using isICE().

Instead, just EvaluateAsInt().

Follow-up to r239549: rsmith points out that isICE() is expensive;
seems like it's not the right concept anyway, as it fails on
`static const' in C, and will actually trigger the assert below on:
    test/Sema/inline-asm-validate-x86.c

llvm-svn: 239651
clang/lib/CodeGen/CGStmt.cpp
clang/test/CodeGen/inline-asm-immediate-ubsan.c