diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-10-13 22:30:41 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-10-13 22:30:41 +0000 |
commit | 27844533aad5c165523a5926424097699610d3f0 (patch) | |
tree | 2a93afc7affd7ec05871ce0780711422cd479fb3 /lib/CodeGen | |
parent | 43085815b1b377dc30176afab2b96d6b807d42de (diff) |
"Implement" codegen support for __noop().
Eli discovered that __noop's sema behavior also needs some love. I filed
PR14081 for that and intend to improve it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGBuiltin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGBuiltin.cpp b/lib/CodeGen/CGBuiltin.cpp index cf124caec1..ad36b1c78e 100644 --- a/lib/CodeGen/CGBuiltin.cpp +++ b/lib/CodeGen/CGBuiltin.cpp @@ -1321,6 +1321,8 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD, llvm::StringRef Str = cast<StringLiteral>(AnnotationStrExpr)->getString(); return RValue::get(EmitAnnotationCall(F, AnnVal, Str, E->getExprLoc())); } + case Builtin::BI__noop: + return RValue::get(0); } // If this is an alias for a lib function (e.g. __builtin_sin), emit |