diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-27 21:21:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-27 21:21:35 +0000 |
commit | 1a6bb70ad0a64c906261e8a3c2666663cc77cb65 (patch) | |
tree | 3b5edeb108b76f48e437d39eb15d9141b2587500 /llvm/lib/CodeGen/MachineLoopInfo.cpp | |
parent | be5f3cb6f1a15fe767ba878ba46607e3ca5c8103 (diff) | |
download | llvm-1a6bb70ad0a64c906261e8a3c2666663cc77cb65.zip llvm-1a6bb70ad0a64c906261e8a3c2666663cc77cb65.tar.gz llvm-1a6bb70ad0a64c906261e8a3c2666663cc77cb65.tar.bz2 |
Set loc earlier in CheckSingleInitializer to avoid emitting a
diagnostic without a location. This produces:
simpleTest.c:2:18: error: initializer element is not constant
int *myPointer = &(myArray[2]);
^~~~~~~~~~~~~
instead of:
error: initializer element is not constant
llvm-svn: 44375
Diffstat (limited to 'llvm/lib/CodeGen/MachineLoopInfo.cpp')
0 files changed, 0 insertions, 0 deletions