diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-02-13 10:40:57 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-13 10:40:57 -0500 |
| commit | 259cfa9dabca31bb1739f9ca1b42e7ca1181652f (patch) | |
| tree | 78273886addaf9598fb11f2699bfca34551bb965 /source | |
| parent | 73af7100416e1627d1de0aaa94983f56406a9d49 (diff) | |
Fix typos in diagnostic message and comments (#843)
* * Fix some comment typos
* Fix typo in diagnostic message
* Fix typo in expected output of undefined-in-preprocessor-conditional
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/diagnostic-defs.h | 2 | ||||
| -rw-r--r-- | source/slang/emit.cpp | 18 | ||||
| -rw-r--r-- | source/slang/lower-to-ir.cpp | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/source/slang/diagnostic-defs.h b/source/slang/diagnostic-defs.h index 8826490a0..51076bde1 100644 --- a/source/slang/diagnostic-defs.h +++ b/source/slang/diagnostic-defs.h @@ -141,7 +141,7 @@ DIAGNOSTIC(15201, Error, syntaxErrorInPreprocessorExpression, "syntax error in p DIAGNOSTIC(15202, Error, divideByZeroInPreprocessorExpression, "division by zero in preprocessor expression"); DIAGNOSTIC(15203, Error, expectedTokenInDefinedExpression, "expected '$0' in 'defined' expression"); DIAGNOSTIC(15204, Warning, directiveExpectsExpression, "'$0' directive requires an expression"); -DIAGNOSTIC(15205, Warning, undefinedIdentifierInPreprocessorExpression, "undefined idenfier '$0' in preprocessor expression will evaluate to zero") +DIAGNOSTIC(15205, Warning, undefinedIdentifierInPreprocessorExpression, "undefined identifier '$0' in preprocessor expression will evaluate to zero") DIAGNOSTIC(-1, Note, seeOpeningToken, "see opening '$0'") diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp index 38ea79206..eeb23a6e5 100644 --- a/source/slang/emit.cpp +++ b/source/slang/emit.cpp @@ -4598,7 +4598,7 @@ struct EmitVisitor } } - /// Emit high-level language statements from a structrured region tree. + /// Emit high-level language statements from a structured region tree. void emitRegionTree( EmitContext* ctx, RegionTree* regionTree) @@ -5005,12 +5005,12 @@ struct EmitVisitor // // TODO: it would be better to do these transformations earlier, // so that we can, e.g., dump the final IR code *before* emission - // starts, but that gets a bit compilcated because we also want - // to have the region tree avalable without having to recompute it. + // starts, but that gets a bit complicated because we also want + // to have the region tree available without having to recompute it. // // For now we are just going to do things the expedient way, but // eventually we should allow an IR module to have side-band - // storage for dervied structured like the region tree (and logic + // storage for derived structures like the region tree (and logic // for invalidating them when a transformation would break them). // fixValueScoping(regionTree); @@ -5094,7 +5094,7 @@ struct EmitVisitor indent(); // HACK: forward-declare all the local variables needed for the - // prameters of non-entry blocks. + // parameters of non-entry blocks. emitPhiVarDecls(ctx, func); // Need to emit the operations in the blocks of the function @@ -5242,7 +5242,7 @@ struct EmitVisitor } // Check whether a given value names a target intrinsic, - // and return the IR function representing the instrinsic + // and return the IR function representing the intrinsic // if it does. IRFunc* asTargetIntrinsic( EmitContext* ctxt, @@ -5278,7 +5278,7 @@ struct EmitVisitor // We do not emit the declaration for // functions that appear to be intrinsics/builtins - // in the target langugae. + // in the target language. if (isTargetIntrinsic(ctx, func)) return; @@ -5470,12 +5470,12 @@ struct EmitVisitor // add the `flat` modifier for GLSL. if(!anyModifiers && isGLSL) { - // Only emit a deault `flat` for fragment + // Only emit a default `flat` for fragment // stage varying inputs. // // TODO: double-check that this works for // signature matching even if the producing - // stage didnt' use `flat`. + // stage didn't use `flat`. // // If this ends up being a problem we can instead // output everything with `flat` except for diff --git a/source/slang/lower-to-ir.cpp b/source/slang/lower-to-ir.cpp index 665904969..0d9427b08 100644 --- a/source/slang/lower-to-ir.cpp +++ b/source/slang/lower-to-ir.cpp @@ -113,7 +113,7 @@ struct LoweredValInfo // A simple IR value Simple, - // An l-value reprsented as an IR + // An l-value represented as an IR // pointer to the value Ptr, |
