summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-06-28 18:20:53 +0000
committerEric Christopher <echristo@apple.com>2011-06-28 18:20:53 +0000
commitfd9a5f4f66447e04c439bd7b22224ee3bbb2acce (patch)
treed450c3af091cd33ce9e60f7f1a52080bb8bfd558 /clang/lib/CodeGen/CGStmt.cpp
parentb26d578b417aa94eba4ddbd2e23865f9a9ae6f4e (diff)
downloadbcm5719-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.cpp1
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)
OpenPOWER on IntegriCloud