mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 15:16:39 +00:00
Track the file kind on SourceLocation rather than computing it from the file name. (#2999)
This will be more correct if a user file is named prelude.carbon, and reduces the explorer runtime by about 10% by removing a string comparison from the check for whether trace output is enabled. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
1 parent
41e357492b
commit
ea60e4f491
29 files changed
+168
-146
No files matched your search
+1
-1
@@ -3,11 +3,11 @@
|
||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
//
|
||||
// AUTOUPDATE
|
||||
// CHECK:STDERR: RUNTIME ERROR: overflow:1: stack overflow: too many interpreter actions on stack
|
||||
|
||||
package EmptyIdentifier impl;
|
||||
|
||||
fn A() {
|
||||
// CHECK:STDERR: RUNTIME ERROR: fail_function_recursion.carbon:[[@LINE+1]]: stack overflow: too many interpreter actions on stack
|
||||
A();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user