diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-03-30 20:32:06 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-03-30 20:32:06 +0000 |
commit | ed308a94da1c5044baf25921974702f0014f8da6 (patch) | |
tree | e203803b9fbb1f9f33f070b6c9bc0ee73a89a76f /clang/lib | |
parent | 5f0d97c571af62a89809d44f1b97563a0ebce85b (diff) | |
download | bcm5719-llvm-ed308a94da1c5044baf25921974702f0014f8da6.tar.gz bcm5719-llvm-ed308a94da1c5044baf25921974702f0014f8da6.zip |
Code gen does not yet supports __asm__ on a variable
declaration. Reject it.
llvm-svn: 68058
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index acf16561ccf..5a5bb62b063 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -60,6 +60,9 @@ void CodeGenFunction::EmitDecl(const Decl &D) { /// EmitBlockVarDecl - This method handles emission of any variable declaration /// inside a function, including static vars etc. void CodeGenFunction::EmitBlockVarDecl(const VarDecl &D) { + if (D.getAttr<AsmLabelAttr>()) + CGM.ErrorUnsupported(&D, "__asm__"); + switch (D.getStorageClass()) { case VarDecl::Static: return EmitStaticBlockVarDecl(D); |