diff options
| author | Eric Christopher <echristo@apple.com> | 2011-06-28 18:20:53 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2011-06-28 18:20:53 +0000 |
| commit | fd9a5f4f66447e04c439bd7b22224ee3bbb2acce (patch) | |
| tree | d450c3af091cd33ce9e60f7f1a52080bb8bfd558 /clang/lib/CodeGen/CGStmt.cpp | |
| parent | b26d578b417aa94eba4ddbd2e23865f9a9ae6f4e (diff) | |
| download | bcm5719-llvm-fd9a5f4f66447e04c439bd7b22224ee3bbb2acce.tar.gz bcm5719-llvm-fd9a5f4f66447e04c439bd7b22224ee3bbb2acce.zip | |
Split out logic for valid clobbers and valid inline asm registers.
Fixes rdar://9281377
llvm-svn: 134016
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index f5bd56efb25..5d5ab2f97aa 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -1558,6 +1558,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { for (unsigned i = 0, e = S.getNumClobbers(); i != e; i++) { llvm::StringRef Clobber = S.getClobber(i)->getString(); + if (Clobber != "memory" && Clobber != "cc") Clobber = Target.getNormalizedGCCRegisterName(Clobber); if (i != 0 || NumConstraints != 0) |

